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 { } $test3 = new test3(); $test3->foo->bar['nope'] = 42; var_dump($test3); echo PHP_EOL . PHP_EOL; class test4 { public $foo; } $test4 = new test4(); $test4->foo->bar['nope'] = 42; var_dump($test4); 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.0140.00018.42
8.3.50.0180.00018.03
8.3.40.0140.00418.87
8.3.30.0040.01118.79
8.3.20.0040.00418.94
8.3.10.0080.00023.52
8.3.00.0000.00919.91
8.2.180.0090.00618.66
8.2.170.0070.00722.96
8.2.160.0080.00819.21
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00321.03
8.2.110.0000.01022.12
8.2.100.0120.00017.72
8.2.90.0050.00317.75
8.2.80.0040.00418.92
8.2.70.0040.00417.63
8.2.60.0080.00017.50
8.2.50.0050.00317.50
8.2.40.0050.00519.13
8.2.30.0000.00719.07
8.2.20.0080.00017.94
8.2.10.0080.00018.04
8.2.00.0050.00218.05
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0110.00019.02
8.1.220.0050.00317.76
8.1.210.0080.00018.77
8.1.200.0090.00017.35
8.1.190.0000.00917.10
8.1.180.0030.00518.10
8.1.170.0050.00317.62
8.1.160.0040.00418.82
8.1.150.0000.00820.17
8.1.140.0040.00417.58
8.1.130.0070.00018.95
8.1.120.0000.00717.28
8.1.110.0060.00317.42
8.1.100.0050.00317.28
8.1.90.0050.00317.24
8.1.80.0000.00717.27
8.1.70.0070.00017.45
8.1.60.0060.00317.49
8.1.50.0050.00517.54
8.1.40.0030.00517.54
8.1.30.0080.00017.69
8.1.20.0000.00717.47
8.1.10.0040.00417.50
8.1.00.0040.00417.43
8.0.300.0020.00519.68
8.0.290.0000.00716.75
8.0.280.0000.00818.43
8.0.270.0000.00716.73
8.0.260.0030.00316.81
8.0.250.0070.00017.00
8.0.240.0080.00016.94
8.0.230.0000.00716.84
8.0.220.0030.00316.90
8.0.210.0000.00716.77
8.0.200.0030.00316.98
8.0.190.0100.00016.81
8.0.180.0040.00416.80
8.0.170.0000.00916.91
8.0.160.0040.00416.86
8.0.150.0030.00416.84
8.0.140.0030.00316.83
8.0.130.0000.00513.21
8.0.120.0050.00316.86
8.0.110.0050.00316.68
8.0.100.0040.00416.82
8.0.90.0000.00716.90
8.0.80.0060.00916.84
8.0.70.0070.00016.84
8.0.60.0030.00516.89
8.0.50.0000.00816.71
8.0.30.0180.00816.94
8.0.20.0080.01217.40
8.0.10.0000.00817.07
8.0.00.0090.00916.69
7.4.330.0050.00015.55
7.4.320.0030.00316.52
7.4.300.0060.00016.57
7.4.290.0000.00816.52
7.4.280.0000.00916.52
7.4.270.0000.00716.34
7.4.260.0030.00616.43
7.4.250.0070.00016.50
7.4.240.0040.00416.51
7.4.230.0070.00016.55
7.4.220.0000.00716.27
7.4.210.0030.01316.47
7.4.200.0070.00016.58
7.4.160.0110.00516.47
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0180.00416.72
7.4.120.0090.01016.50
7.4.110.0060.01316.45
7.4.100.0100.00716.43
7.4.90.0110.00716.52
7.4.80.0090.01519.39
7.4.70.0100.01316.52
7.4.60.0070.01016.56
7.4.50.0070.00716.50
7.4.40.0120.00616.55
7.4.00.0000.01615.18
7.3.330.0030.00313.29
7.3.320.0030.00313.18
7.3.310.0000.00716.26
7.3.300.0050.00216.21
7.3.290.0110.00416.33
7.3.280.0060.01016.36
7.3.270.0140.00417.40
7.3.260.0130.00816.50
7.3.250.0070.01416.42
7.3.240.0120.00616.55
7.3.230.0140.00316.36
7.3.210.0040.01416.22
7.3.200.0130.01016.56
7.3.190.0030.01316.43
7.3.180.0060.01016.35
7.3.170.0120.00416.40
7.3.160.0160.00616.55
7.2.330.0090.00916.69
7.2.320.0110.00716.72
7.2.310.0110.00716.59
7.2.300.0090.01216.40
7.2.290.0080.01016.77
7.2.60.0090.00316.82
7.2.20.0770.00717.77
7.2.10.0460.01218.14
7.2.00.0490.01318.07
7.1.200.0140.00015.81
7.1.140.0500.01316.86
7.1.130.0510.01216.90
7.1.120.0450.01817.00
7.1.110.0530.01116.38
7.1.100.0450.01015.96
7.1.90.0320.01716.00
7.1.80.0060.01915.77
7.1.70.0170.01114.99
7.1.60.0370.01033.13
7.1.50.0640.01032.90
7.1.40.0570.01732.56
7.1.30.0740.01532.41
7.1.20.0570.01232.87
7.1.10.0370.01414.72
7.1.00.0670.01515.00

preferences:
60.36 ms | 400 KiB | 5 Q