3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test1 { } $test1 = new test1(); $test1->foo->bar = 42; var_dump($test1); echo PHP_EOL . PHP_EOL; class test2 { public $foo; } $test2 = new test2(); $test2->foo->bar = 42; var_dump($test2); echo PHP_EOL . PHP_EOL; class test3 { public $foo; } $test3 = new test3(); $test3->foo->bar['nope'] = 42; var_dump($test3); echo PHP_EOL . PHP_EOL;

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.60.0130.00618.55
8.3.50.0160.00316.47
8.3.40.0110.00418.97
8.3.30.0100.00518.88
8.3.20.0050.00319.02
8.3.10.0000.00823.65
8.3.00.0000.00819.97
8.2.180.0080.01217.13
8.2.170.0070.00722.96
8.2.160.0100.00719.16
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00421.08
8.2.110.0070.00319.45
8.2.100.0040.00817.78
8.2.90.0040.00418.22
8.2.80.0000.00819.16
8.2.70.0080.00017.63
8.2.60.0080.00017.63
8.2.50.0040.00417.55
8.2.40.0030.00522.27
8.2.30.0050.00219.25
8.2.20.0050.00217.88
8.2.10.0080.00017.79
8.2.00.0040.00418.06
8.1.280.0090.00625.92
8.1.270.0000.00920.65
8.1.260.0090.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00022.05
8.1.230.0040.00821.00
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0030.00617.29
8.1.180.0030.00618.10
8.1.170.0000.00918.84
8.1.160.0040.00418.71
8.1.150.0040.00420.15
8.1.140.0000.00717.57
8.1.130.0030.00318.98
8.1.120.0000.01017.43
8.1.110.0030.00617.36
8.1.100.0030.00617.36
8.1.90.0030.00517.42
8.1.80.0000.00817.43
8.1.70.0050.00217.43
8.1.60.0050.00317.55
8.1.50.0100.00017.51
8.1.40.0040.00417.48
8.1.30.0040.00417.61
8.1.20.0040.00417.51
8.1.10.0040.00417.63
8.1.00.0040.00417.49
8.0.300.0040.00420.09
8.0.290.0070.00016.63
8.0.280.0050.00318.39
8.0.270.0070.00016.82
8.0.260.0030.00516.76
8.0.250.0080.00016.87
8.0.240.0040.00416.96
8.0.230.0000.00816.98
8.0.220.0040.00416.84
8.0.210.0030.00316.94
8.0.200.0000.00816.95
8.0.190.0080.00316.96
8.0.180.0000.00716.93
8.0.170.0040.00416.80
8.0.160.0040.00416.80
8.0.150.0030.00316.88
8.0.140.0030.00316.85
8.0.130.0030.00313.39
8.0.120.0040.00416.79
8.0.110.0070.00016.84
8.0.100.0040.00416.73
8.0.90.0050.00316.79
8.0.80.0000.02116.88
8.0.70.0000.00716.93
8.0.60.0050.00316.81
8.0.50.0040.00416.79
8.0.30.0110.01017.09
8.0.20.0120.00717.40
8.0.10.0040.00417.05
8.0.00.0080.01216.68
7.4.330.0030.00315.55
7.4.320.0060.00016.50
7.4.300.0030.00316.46
7.4.290.0040.00416.34
7.4.280.0040.00416.46
7.4.270.0030.00316.44
7.4.260.0030.00316.41
7.4.250.0040.00416.34
7.4.240.0030.00516.55
7.4.230.0030.00316.52
7.4.220.0070.00016.44
7.4.210.0120.00316.63
7.4.200.0000.00716.49
7.4.160.0080.01016.54
7.4.150.0110.00717.40
7.4.140.0110.00717.86
7.4.130.0140.00516.41
7.4.120.0060.01416.51
7.4.110.0130.00416.41
7.4.100.0100.01316.68
7.4.90.0110.00716.62
7.4.80.0180.00019.39
7.4.70.0170.00716.57
7.4.60.0140.00316.46
7.4.50.0000.01316.32
7.4.40.0030.01916.45
7.4.00.0100.00715.02
7.3.330.0000.00713.38
7.3.320.0050.00013.38
7.3.310.0040.00416.27
7.3.300.0000.00716.32
7.3.290.0080.00716.37
7.3.280.0110.00616.36
7.3.270.0090.00917.40
7.3.260.0130.00916.44
7.3.250.0110.01016.48
7.3.240.0070.01216.40
7.3.230.0110.00516.52
7.3.210.0110.00716.36
7.3.200.0070.01016.50
7.3.190.0070.01016.56
7.3.180.0060.00916.47
7.3.170.0050.01216.41
7.3.160.0140.01116.52
7.3.120.0060.00917.15
7.3.110.0110.00717.15
7.3.100.0040.00917.15
7.3.90.0040.01117.15
7.3.80.0030.00917.15
7.3.70.0070.01017.15
7.3.60.0120.00617.15
7.3.50.0060.00617.15
7.3.40.0000.01117.15
7.3.30.0000.01017.15
7.3.20.0030.01017.15
7.3.10.0030.01017.15
7.3.00.0040.01117.15
7.2.330.0110.00716.63
7.2.320.0070.01016.73
7.2.310.0110.00516.57
7.2.300.0070.01016.52
7.2.290.0090.01316.79
7.2.240.0060.00917.15
7.2.230.0080.00417.15
7.2.220.0000.01217.15
7.2.210.0040.01117.15
7.2.200.0080.00617.15
7.2.190.0060.01017.15
7.2.180.0000.01417.15
7.2.170.0090.00617.15
7.2.160.0000.01617.15
7.2.150.0000.01617.15
7.2.140.0140.00417.18
7.2.130.0080.00817.15
7.2.120.0060.00917.15
7.2.110.0130.00317.15
7.2.100.0030.00717.15
7.2.90.0040.01217.15
7.2.80.0000.01817.15
7.2.70.0040.00817.15
7.2.60.0030.01217.13
7.2.50.0170.00017.15
7.2.40.0030.01417.15
7.2.30.0070.01017.15
7.2.20.0210.01017.42
7.2.10.0230.00617.44
7.2.00.0330.01017.45
7.1.330.0070.00717.15
7.1.320.0000.01217.15
7.1.310.0100.00317.15
7.1.300.0090.00617.15
7.1.290.0030.01417.15
7.1.280.0000.01417.15
7.1.270.0000.01517.15
7.1.260.0040.00717.15
7.1.250.0050.00517.15
7.1.200.0090.00315.48
7.1.140.0350.01116.41
7.1.130.0380.00316.36
7.1.120.0430.01116.46
7.1.110.0370.01416.03
7.1.100.0340.00315.78
7.1.90.0510.00615.75
7.1.80.0360.01315.50
7.1.70.0370.00915.45
7.1.60.0440.00933.09
7.1.50.0590.01033.04
7.1.40.0420.01632.64
7.1.30.0580.01632.45
7.1.20.0440.01332.77
7.1.10.0470.01014.67
7.1.00.0390.00314.72

preferences:
33.83 ms | 400 KiB | 5 Q