3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function ($code, $msg, $file, $line) { fwrite(\STDERR, "$msg in file $file on line $line\n"); }); $foo = $bar; ini_set('session.name', 'SID'); echo ini_get('session.name'), 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.4.120.0120.00823.80
8.4.110.0060.00520.40
8.4.100.0150.00617.61
8.4.90.0120.00820.30
8.4.80.0120.00618.90
8.4.70.0070.00720.52
8.4.60.0070.01020.50
8.4.50.0130.00818.59
8.4.40.0120.00917.90
8.4.30.0120.00620.45
8.4.20.0100.00617.79
8.4.10.0030.00619.48
8.3.250.0140.00219.07
8.3.240.0120.00717.25
8.3.230.0090.01016.54
8.3.220.0060.00919.02
8.3.210.0070.01016.88
8.3.200.0060.00316.63
8.3.190.0120.00817.09
8.3.180.0110.00819.05
8.3.170.0060.01217.16
8.3.160.0030.00616.70
8.3.150.0040.00418.61
8.3.140.0070.01016.81
8.3.130.0040.00418.52
8.3.120.0060.00320.48
8.3.110.0120.00320.94
8.3.100.0190.00016.61
8.3.90.0060.00326.77
8.3.80.0030.00618.43
8.3.70.0170.00316.59
8.3.60.0080.00818.31
8.3.50.0060.01218.62
8.3.40.0100.00320.39
8.3.30.0030.01018.92
8.3.20.0050.00324.18
8.3.10.0070.00024.66
8.3.00.0070.00026.16
8.2.290.0120.00616.78
8.2.280.0100.00718.32
8.2.270.0090.00918.41
8.2.260.0120.00617.27
8.2.250.0040.00418.64
8.2.240.0060.00318.87
8.2.230.0000.01022.58
8.2.220.0030.00724.06
8.2.210.0040.00426.77
8.2.200.0000.00816.50
8.2.190.0120.00616.58
8.2.180.0120.00316.48
8.2.170.0110.00319.09
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00021.04
8.2.110.0060.00321.04
8.2.100.0040.00818.44
8.2.90.0250.00518.44
8.2.80.0250.00418.44
8.2.70.0250.00618.44
8.2.60.0060.00618.44
8.2.50.0280.00518.44
8.2.40.0290.00018.44
8.2.30.0170.01018.44
8.2.20.0220.00818.44
8.2.10.0230.00818.44
8.2.00.0200.00618.44
8.1.330.0110.00816.29
8.1.320.0110.00818.13
8.1.310.0150.00318.10
8.1.300.0030.00616.06
8.1.290.0050.00330.84
8.1.280.0180.00425.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.19
8.1.230.0230.00318.44
8.1.220.0190.00818.44
8.1.210.0210.00518.44
8.1.200.0220.00918.44
8.1.190.0260.00318.44
8.1.180.0260.00318.44
8.1.170.0210.00818.44
8.1.160.0270.00318.44
8.1.150.0220.00418.44
8.1.140.0180.00818.44
8.1.130.0160.01218.44
8.1.120.0200.00718.44
8.1.110.0180.01118.44
8.1.100.0210.00618.44
8.1.90.0150.01018.44
8.1.80.0240.00418.44
8.1.70.0190.00818.44
8.1.60.0160.01218.44
8.1.50.0240.00418.44
8.1.40.0270.00018.44
8.1.30.0270.00018.44
8.1.20.0260.00018.44
8.1.10.0200.00618.44
8.1.00.0200.00518.44
8.0.300.0270.00618.44
8.0.290.0260.00418.44
8.0.280.0260.00318.44
8.0.270.0220.00418.44
8.0.260.0240.00618.44
8.0.250.0240.00418.44
8.0.240.0240.00418.44
8.0.230.0250.00218.44
8.0.220.0190.00818.44
8.0.210.0240.00318.44
8.0.200.0270.00018.44
8.0.190.0250.00818.44
8.0.180.0140.01418.44
8.0.170.0240.00618.44
8.0.160.0290.00018.44
8.0.150.0290.00418.44
8.0.140.0240.00318.44
8.0.130.0260.00018.44
8.0.120.0190.00618.44
8.0.110.0280.00018.44
8.0.100.0230.00518.44
8.0.90.0230.00418.44
8.0.80.0220.00518.44
8.0.70.0270.00018.44
8.0.60.0240.00318.44
8.0.50.0220.00518.44
8.0.30.0200.00518.44
8.0.20.0220.00418.44
8.0.10.0230.00518.44

preferences:
30.6 ms | 403 KiB | 5 Q