3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['foo'=>'bar']; //PHP5 style $message = isset($array['foo']) ? $array['foo'] : 'not set'; echo $message.PHP_EOL; //PHP7 style $message = $array['foo'] ?? 'not set'; echo $message.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.70.0070.01016.58
8.3.60.0140.00716.63
8.3.50.0030.01017.75
8.3.40.0120.00318.83
8.3.30.0140.00318.50
8.3.20.0000.00721.66
8.3.10.0080.00023.65
8.3.00.0030.00519.81
8.2.180.0140.00718.17
8.2.170.0120.00622.96
8.2.160.0110.00420.39
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00419.22
8.2.120.0070.00026.35
8.2.110.0090.00019.39
8.2.100.0040.00817.78
8.2.90.0040.00417.85
8.2.80.0010.00918.16
8.2.70.0030.00618.05
8.2.60.0080.00018.03
8.2.50.0030.00518.16
8.2.40.0040.00420.29
8.2.30.0000.00719.60
8.2.20.0000.01118.00
8.2.10.0050.00318.07
8.2.00.0070.00018.17
8.1.280.0120.00625.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00922.55
8.1.230.0080.00420.89
8.1.220.0040.00417.74
8.1.210.0000.00819.03
8.1.200.0050.00517.22
8.1.190.0100.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.51
8.1.160.0000.00718.82
8.1.150.0000.00820.79
8.1.140.0050.00217.52
8.1.130.0030.00318.92
8.1.120.0030.00417.37
8.1.110.0040.00417.34
8.1.100.0040.00417.37
8.1.90.0070.00017.40
8.1.80.0100.00017.28
8.1.70.0000.00717.36
8.1.60.0060.00317.55
8.1.50.0030.00517.55
8.1.40.0000.00817.57
8.1.30.0060.00317.61
8.1.20.0000.00717.54
8.1.10.0080.00017.64
8.1.00.0080.00017.52
8.0.300.0040.00419.89
8.0.290.0000.00816.75
8.0.280.0030.00318.44
8.0.270.0070.00017.17
8.0.260.0000.00718.95
8.0.250.0070.00016.97
8.0.240.0040.00416.92
8.0.230.0070.00016.92
8.0.220.0000.00716.89
8.0.210.0030.00316.77
8.0.200.0000.00616.81
8.0.190.0040.00416.89
8.0.180.0030.00616.95
8.0.170.0030.00616.79
8.0.160.0030.00316.90
8.0.150.0040.00416.91
8.0.140.0050.00216.82
8.0.130.0050.00013.39
8.0.120.0040.00416.91
8.0.110.0000.00716.75
8.0.100.0050.00216.97
8.0.90.0040.00416.86
8.0.80.0080.00616.95
8.0.70.0080.00016.90
8.0.60.0070.00016.96
8.0.50.0040.00416.92
8.0.30.0140.00617.17
8.0.20.0140.00717.40
8.0.10.0000.00716.82
8.0.00.0100.01116.64
7.4.330.0000.00615.55
7.4.320.0000.00616.49
7.4.300.0000.00716.50
7.4.290.0030.00316.54
7.4.280.0040.00416.38
7.4.270.0030.00616.38
7.4.260.0030.00316.35
7.4.250.0000.00816.42
7.4.240.0000.00716.55
7.4.230.0000.00816.52
7.4.220.0050.00316.54
7.4.210.0090.00816.52
7.4.200.0030.00316.64
7.4.160.0070.00816.37
7.4.140.0080.01117.86
7.4.130.0060.01016.39
7.4.120.0110.00916.49
7.4.110.0060.01016.66
7.4.100.0100.01016.44
7.4.90.0060.01016.44
7.4.80.0130.01019.39
7.4.70.0110.00516.47
7.4.60.0030.01316.46
7.4.50.0080.00516.39
7.4.40.0110.01116.41
7.4.00.0100.00614.76
7.3.330.0000.00513.01
7.3.320.0050.00013.11
7.3.310.0020.00516.10
7.3.300.0040.00416.26
7.3.290.0000.00716.37
7.3.280.0090.00816.36
7.3.260.0110.01216.51
7.3.240.0100.00816.28
7.3.230.0070.01016.58
7.3.210.0070.01016.55
7.3.200.0090.00616.44
7.3.190.0100.00716.46
7.3.180.0080.00816.32
7.3.170.0120.00316.34
7.3.160.0070.01016.29
7.2.330.0130.00716.60
7.2.320.0090.01216.76
7.2.310.0100.00716.33
7.2.300.0190.00016.53
7.2.290.0090.01216.71
7.2.60.0060.00916.62
7.2.50.0030.00616.95
7.2.40.1100.01318.06
7.2.30.1170.00917.87
7.2.20.1210.01517.79
7.2.10.1310.01718.03
7.2.00.1290.02017.75
7.1.200.0030.00315.78
7.1.160.1010.01816.81
7.1.150.1240.01416.55
7.1.140.1310.01316.99
7.1.130.1130.01117.00
7.1.120.1210.01416.84
7.1.110.1050.01216.31
7.1.100.1300.01416.07
7.1.90.0990.01216.07
7.1.80.1010.01315.96
7.1.70.1010.00815.39
7.1.60.1130.01833.37
7.1.50.1760.01633.08
7.1.40.1750.01332.74
7.1.30.1560.02132.66
7.1.20.1650.02032.67
7.1.10.0930.01014.68
7.1.00.1460.01214.98

preferences:
58.33 ms | 401 KiB | 5 Q