3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 'On'); error_reporting(E_ALL); define('bar', 'foo'); $a = ['foo' => 'Foo!', 'bar' => 'Bar!']; echo 'Defined bar as "', bar, '"', PHP_EOL; echo "Hello, $a[bar]", 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.140.0140.01017.38
8.4.130.0120.00818.79
8.4.120.0050.00523.92
8.4.110.0170.00718.56
8.4.100.0150.00617.61
8.4.90.0130.00720.53
8.4.80.0120.00920.52
8.4.70.0050.00319.16
8.4.60.0150.00620.50
8.4.50.0040.00520.69
8.4.40.0120.00819.48
8.4.30.0040.00717.47
8.4.20.0060.00617.87
8.4.10.0050.00517.72
8.3.270.0120.00816.38
8.3.260.0080.00216.75
8.3.250.0090.00719.00
8.3.240.0120.00816.88
8.3.230.0110.00916.61
8.3.220.0060.00218.90
8.3.210.0140.00516.66
8.3.200.0040.00516.68
8.3.190.0140.00517.21
8.3.180.0090.00818.84
8.3.170.0160.00317.07
8.3.160.0090.00916.59
8.3.150.0090.00917.22
8.3.140.0070.01116.46
8.3.130.0030.00618.15
8.3.120.0030.00718.92
8.3.110.0040.00420.94
8.3.100.0030.00616.35
8.3.90.0070.00026.77
8.3.80.0040.00417.97
8.3.70.0090.00616.63
8.3.60.0140.00718.18
8.3.50.0080.00918.20
8.3.40.0100.00718.85
8.3.30.0110.00418.84
8.3.20.0070.00021.91
8.3.10.0040.00423.66
8.3.00.0070.00021.77
8.2.290.0120.00617.27
8.2.280.0120.00818.21
8.2.270.0090.00916.34
8.2.260.0070.01117.36
8.2.250.0060.00316.71
8.2.240.0040.00416.46
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0070.00026.77
8.2.200.0100.00018.16
8.2.190.0060.01216.58
8.2.180.0070.01425.92
8.2.170.0110.00722.96
8.2.160.0070.00722.07
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0080.00318.05
8.2.110.0030.00622.14
8.2.100.0000.01119.89
8.2.90.0050.00320.01
8.2.80.0040.00418.05
8.2.70.0030.00518.05
8.2.60.0000.00818.22
8.2.50.0040.00418.10
8.2.40.0000.00822.08
8.2.30.0000.00819.21
8.2.20.0000.00718.08
8.2.10.0050.00318.10
8.2.00.0050.00318.18
8.1.330.0120.00716.07
8.1.320.0090.01116.06
8.1.310.0150.00416.67
8.1.300.0000.00820.32
8.1.290.0030.00930.84
8.1.280.0070.01125.92
8.1.270.0030.00622.16
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00822.14
8.1.230.0000.01119.01
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.01117.23
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0040.00418.71
8.1.160.0000.00718.76
8.1.150.0070.00018.76
8.1.140.0050.00319.07
8.1.130.0070.00017.73
8.1.120.0040.00417.45
8.1.110.0000.00717.49
8.1.100.0000.00717.44
8.1.90.0040.00417.35
8.1.80.0060.00317.36
8.1.70.0050.00317.34
8.1.60.0040.00417.59
8.1.50.0000.00817.41
8.1.40.0050.00217.48
8.1.30.0040.00417.54
8.1.20.0080.00017.67
8.1.10.0000.00817.48
8.1.00.0030.00517.46
8.0.300.0060.00319.73
8.0.290.0080.00016.75
8.0.280.0030.00518.37
8.0.270.0030.00517.24
8.0.260.0000.00617.17
8.0.250.0040.00416.96
8.0.240.0030.00317.00
8.0.230.0050.00316.94
8.0.220.0000.00716.85
8.0.210.0030.00316.75
8.0.200.0030.00316.97
8.0.190.0080.00016.98
8.0.180.0000.00816.96
8.0.170.0050.00316.89
8.0.160.0040.00416.97
8.0.150.0040.00416.87
8.0.140.0070.00016.74
8.0.130.0000.00513.27
8.0.120.0000.00716.84
8.0.110.0000.00716.74
8.0.100.0040.00416.95
8.0.90.0000.00716.79
8.0.80.0100.01016.84
8.0.70.0070.00016.96
8.0.60.0080.00016.75
8.0.50.0000.00716.92
8.0.30.0080.00817.14
8.0.20.0080.01117.40
8.0.10.0030.00517.12
8.0.00.0100.00816.70
7.4.330.0000.00515.55
7.4.320.0000.00616.50
7.4.300.0000.00616.35
7.4.290.0060.00316.62
7.4.280.0030.00516.63
7.4.270.0040.00416.50
7.4.260.0000.00816.55
7.4.250.0050.00316.49
7.4.240.0000.00716.49
7.4.230.0000.00716.63
7.4.220.0000.00716.63
7.4.210.0100.01016.41
7.4.200.0030.00516.59
7.4.160.0100.00916.46
7.4.150.0190.00317.40
7.4.140.0130.00517.86
7.4.130.0070.01116.33
7.4.120.0110.01116.47
7.4.110.0110.00616.42
7.4.100.0090.00916.51
7.4.90.0090.00616.31
7.4.80.0070.01119.39
7.4.70.0060.01916.57
7.4.60.0060.01016.54
7.4.50.0070.00716.30
7.4.40.0060.01716.44
7.4.00.0060.01014.83
7.3.330.0050.00012.94
7.3.320.0030.00313.03
7.3.310.0040.00416.04
7.3.300.0060.00016.13
7.3.290.0090.00816.23
7.3.280.0100.01016.19
7.3.270.0160.00317.40
7.3.260.0100.00816.32
7.3.250.0110.00716.35
7.3.240.0120.00516.29
7.3.230.0090.00916.49
7.3.210.0130.00316.49
7.3.200.0130.00316.58
7.3.190.0080.00816.19
7.3.180.0040.01216.25
7.3.170.0110.00816.30
7.3.160.0130.00316.31
7.3.120.0060.00814.58
7.3.110.0050.01214.71
7.3.100.0030.01214.60
7.3.90.0030.00814.85
7.3.80.0080.00614.65
7.3.70.0060.00914.75
7.3.60.0030.00614.81
7.3.50.0100.00514.77
7.3.40.0060.00414.46
7.3.30.0030.01214.71
7.3.20.0030.00916.52
7.3.10.0070.00516.57
7.3.00.0050.01016.68
7.2.330.0170.00016.30
7.2.320.0090.00916.48
7.2.310.0120.00816.45
7.2.300.0100.01016.49
7.2.290.0070.01016.46
7.2.250.0020.01614.91
7.2.240.0050.01314.99
7.2.230.0080.00414.91
7.2.220.0020.01215.14
7.2.210.0050.01014.71
7.2.200.0060.00815.04
7.2.190.0080.00514.79
7.2.180.0080.00615.13
7.2.170.0060.00915.04
7.2.60.0000.01116.61
7.2.00.0140.01017.72
7.1.330.0060.00815.81
7.1.320.0070.00615.56
7.1.310.0060.00715.65
7.1.300.0040.00915.71
7.1.290.0050.00515.68
7.1.280.0090.00315.78
7.1.270.0040.01015.68
7.1.260.0020.00815.82
7.1.200.0020.00715.56
7.1.120.0260.00616.98
7.1.110.0060.00615.86
7.1.100.0080.00516.20
7.1.90.0280.00316.02
7.1.80.0290.00016.09
7.1.70.0000.01215.08
7.1.60.0170.01033.24
7.1.50.0220.00632.63
7.1.40.0180.01632.67
7.1.30.0580.00032.71
7.1.20.0350.01232.54
7.1.10.0210.01014.63
7.1.00.0030.00914.70

preferences:
174.53 ms | 403 KiB | 5 Q