3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $var = 'test'; public function show_var() { echo $this->var; } } class Test_2 { protected $test; public function __construct() { $this->test = new Test; } public function show_test() { $this->test->show_var(); } } $test_2 = new Test_2; $test_2->show_test();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.80.0000.00916.56
8.3.70.0120.00616.58
8.3.60.0060.00918.18
8.3.50.0100.01021.14
8.3.40.0030.01218.71
8.3.30.0000.01518.48
8.3.20.0000.00820.84
8.3.10.0040.00421.73
8.3.00.0040.00419.68
8.2.200.0090.00016.38
8.2.190.0150.00616.58
8.2.180.0070.00725.92
8.2.170.0090.00619.09
8.2.160.0110.00422.96
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00720.98
8.2.120.0030.00526.35
8.2.110.0100.00022.08
8.2.100.0120.00017.78
8.2.90.0060.00319.23
8.2.80.0040.00418.04
8.2.70.0040.00417.63
8.2.60.0050.00317.80
8.2.50.0050.00318.10
8.2.40.0060.00320.55
8.2.30.0040.00419.06
8.2.20.0040.00418.09
8.2.10.0040.00417.91
8.2.00.0000.00717.64
8.1.290.0100.00030.84
8.1.280.0130.00725.92
8.1.270.0030.00522.14
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.80
8.1.230.0000.01219.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0070.00020.63
8.1.160.0050.00218.81
8.1.150.0070.00020.30
8.1.140.0000.00819.43
8.1.130.0030.00318.91
8.1.120.0030.00317.41
8.1.110.0000.00717.38
8.1.100.0000.00717.45
8.1.90.0040.00417.29
8.1.80.0070.00017.30
8.1.70.0040.00417.40
8.1.60.0020.00517.54
8.1.50.0000.00817.43
8.1.40.0000.00917.38
8.1.30.0030.00617.66
8.1.20.0080.00017.63
8.1.10.0080.00017.60
8.1.00.0080.00017.52
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0020.00518.45
8.0.270.0040.00417.31
8.0.260.0030.00317.25
8.0.250.0070.00016.95
8.0.240.0040.00416.96
8.0.230.0030.00316.88
8.0.220.0070.00016.82
8.0.210.0030.00316.79
8.0.200.0000.00616.89
8.0.190.0080.00016.88
8.0.180.0040.00416.67
8.0.170.0070.00016.89
8.0.160.0070.00016.89
8.0.150.0000.00716.83
8.0.140.0030.00316.70
8.0.130.0000.00613.29
8.0.120.0000.00916.80
8.0.110.0000.00716.86
8.0.100.0050.00216.64
8.0.90.0000.00716.62
8.0.80.0070.01016.88
8.0.70.0080.00016.79
8.0.60.0040.00416.76
8.0.50.0040.00416.70
8.0.30.0090.00917.11
8.0.20.0100.01117.40
8.0.10.0040.00416.90
8.0.00.0030.01416.39
7.4.330.0050.00015.55
7.4.320.0030.00316.43
7.4.300.0030.00316.58
7.4.290.0030.00316.57
7.4.280.0080.00016.47
7.4.270.0020.00516.59
7.4.260.0000.00716.61
7.4.250.0060.00316.61
7.4.240.0000.00716.48
7.4.230.0070.00016.65
7.4.220.0070.01016.46
7.4.210.0100.00816.51
7.4.200.0070.00016.58
7.4.160.0070.00916.41
7.4.150.0090.00917.40
7.4.140.0110.00617.86
7.4.130.0100.00816.56
7.4.120.0130.00416.44
7.4.110.0070.01016.45
7.4.100.0090.01216.41
7.4.90.0120.00616.54
7.4.80.0130.01019.39
7.4.70.0100.00616.56
7.4.60.0100.00716.55
7.4.50.0030.01016.32
7.4.40.0130.00616.37
7.4.30.0120.00616.43
7.4.00.0070.01014.99
7.3.330.0040.00413.30
7.3.320.0000.00713.25
7.3.310.0020.00516.30
7.3.300.0070.00016.26
7.3.290.0070.00016.24
7.3.280.0080.00916.29
7.3.270.0090.00917.40
7.3.260.0100.00716.33
7.3.250.0090.01016.44
7.3.240.0140.00516.54
7.3.230.0070.01016.39
7.3.210.0040.01416.46
7.3.200.0060.01016.36
7.3.190.0060.01216.32
7.3.180.0110.00516.44
7.3.170.0060.01116.24
7.3.160.0150.00716.32
7.3.120.0040.01115.09
7.3.110.0070.01114.65
7.3.100.0130.00314.80
7.3.90.0070.00714.77
7.3.80.0000.00914.85
7.3.70.0100.00314.76
7.3.60.0120.00314.61
7.3.50.0120.00314.61
7.3.40.0060.00914.57
7.3.30.0000.00914.78
7.3.20.0040.01116.64
7.3.10.0070.00716.37
7.3.00.0080.00316.73
7.2.330.0060.01116.76
7.2.320.0140.00616.66
7.2.310.0040.02016.55
7.2.300.0180.00316.57
7.2.290.0120.01216.58
7.2.250.0100.01014.93
7.2.240.0000.02115.01
7.2.230.0060.00915.20
7.2.220.0030.01015.01
7.2.210.0040.01115.01
7.2.200.0060.00614.73
7.2.190.0060.00615.24
7.2.180.0030.00615.13
7.2.170.0030.01715.00
7.2.60.0000.01617.10
7.1.330.0070.00715.70
7.1.320.0100.00015.95
7.1.310.0030.01015.45
7.1.300.0060.00615.84
7.1.290.0030.00915.74
7.1.280.0100.00315.66
7.1.270.0060.00615.53
7.1.260.0030.00715.72
7.1.200.0000.00815.79
7.1.70.0070.00717.12
7.1.60.0030.00717.02
7.1.00.0800.06020.65
7.0.200.0040.00716.81
7.0.140.0870.06020.14
7.0.130.0700.06320.38
7.0.120.1170.05720.25
7.0.110.0770.05720.21
7.0.100.0800.05020.37
7.0.90.0770.06020.39
7.0.80.0830.05320.35
7.0.70.0730.06320.34
7.0.60.0870.04320.15
7.0.50.0730.05720.37
7.0.40.0630.06020.19
7.0.30.0730.05020.19
7.0.20.1370.05320.18
7.0.10.0930.06020.31
7.0.00.0830.04320.30
5.6.290.0100.07020.87
5.6.280.0100.05721.13
5.6.270.0130.06321.09
5.6.260.0030.06320.87
5.6.250.0000.06721.09
5.6.240.0100.06021.00
5.6.230.0130.05720.75
5.6.220.0170.06021.05
5.6.210.0100.06021.01
5.6.200.0130.05720.75
5.6.190.0070.06320.86
5.6.180.0100.05321.09
5.6.170.0100.05320.93
5.6.160.0070.06020.91
5.6.150.0070.06020.74
5.6.140.0130.05320.86
5.6.130.0130.07021.00
5.6.120.0070.06020.98
5.6.110.0070.06020.73
5.6.100.0130.05321.04
5.6.90.0100.06020.81
5.6.80.0070.05720.11
5.6.70.0100.06020.41
5.6.60.0130.05320.41
5.6.50.0130.05020.27
5.6.40.0170.05320.24
5.6.30.0070.05720.39
5.6.20.0170.04720.19
5.6.10.0070.05720.24
5.6.00.0030.06020.22

preferences:
27.91 ms | 401 KiB | 5 Q