3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '---begin---'; try { $result = @create_function('', 'return (return 1);'); } catch (ParseError $ex) { $result = $ex->getException(); } echo '---end---'; var_dump($result);

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.40.0040.01118.96
8.3.30.0110.00418.88
8.3.20.0080.00020.20
8.3.10.0040.00423.66
8.3.00.0040.00419.26
8.2.170.0170.00322.96
8.2.160.0070.00720.30
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0070.00019.71
8.2.110.0090.00022.30
8.2.100.0070.00417.75
8.2.90.0060.00319.18
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0090.00017.93
8.2.50.0040.00418.07
8.2.40.0030.00519.37
8.2.30.0070.00020.50
8.2.20.0060.00317.74
8.2.10.0070.00017.94
8.2.00.0060.00318.05
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00621.30
8.1.230.0040.00717.76
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.69
8.1.180.0040.00418.10
8.1.170.0040.00420.37
8.1.160.0070.00022.07
8.1.150.0060.00318.82
8.1.140.0000.00819.54
8.1.130.0030.00317.63
8.1.120.0050.00317.36
8.1.110.0020.00517.49
8.1.100.0040.00417.45
8.1.90.0000.00717.45
8.1.80.0050.00317.30
8.1.70.0000.00717.41
8.1.60.0070.00017.54
8.1.50.0040.00417.50
8.1.40.0080.00017.45
8.1.30.0030.00517.72
8.1.20.0030.00517.52
8.1.10.0080.00017.58
8.1.00.0040.00417.49
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00718.42
8.0.270.0000.00716.86
8.0.260.0060.00017.22
8.0.250.0040.00416.89
8.0.240.0000.00717.00
8.0.230.0000.00817.00
8.0.220.0050.00316.87
8.0.210.0040.00616.89
8.0.200.0030.00317.00
8.0.190.0070.00016.89
8.0.180.0070.00016.96
8.0.170.0050.00316.95
8.0.160.0040.00417.03
8.0.150.0050.00516.95
8.0.140.0040.00416.96
8.0.130.0030.00313.42
8.0.120.0040.00416.81
8.0.110.0000.00716.86
8.0.100.0000.00717.01
8.0.90.0040.00416.83
8.0.80.0000.01716.91
8.0.70.0000.00716.82
8.0.60.0040.00416.86
8.0.50.0000.00716.82
8.0.30.0080.00817.10
8.0.20.0120.01017.40
8.0.10.0040.00417.05
8.0.00.0070.00916.69
7.4.330.0000.00516.78
7.4.320.0000.00616.51
7.4.300.0000.00616.61
7.4.290.0000.00816.61
7.4.280.0050.00216.50
7.4.270.0080.00016.44
7.4.260.0060.00316.51
7.4.250.0050.00316.52
7.4.240.0050.00316.56
7.4.230.0030.00516.56
7.4.220.0210.00316.36
7.4.210.0110.00616.53
7.4.200.0070.00016.35
7.4.160.0030.01416.58
7.4.150.0120.00617.40
7.4.140.0100.01317.86
7.4.130.0100.00716.65
7.4.120.0110.00616.61
7.4.110.0060.01316.55
7.4.100.0090.01316.51
7.4.90.0120.00616.45
7.4.80.0080.00919.39
7.4.70.0070.01316.66
7.4.60.0060.01216.36
7.4.50.0070.01116.25
7.4.40.0120.00916.37
7.4.30.0130.00716.35
7.4.00.0080.00714.85
7.3.330.0000.00513.23
7.3.320.0030.00313.31
7.3.310.0000.00716.12
7.3.300.0070.00016.26
7.3.290.0030.00316.11
7.3.280.0090.00616.28
7.3.270.0150.00317.40
7.3.260.0040.01216.45
7.3.250.0070.01016.28
7.3.240.0050.01216.38
7.3.230.0140.00316.40
7.3.210.0100.00616.28
7.3.200.0100.00716.17
7.3.190.0090.01216.45
7.3.180.0150.00616.38
7.3.170.0110.00616.37
7.3.160.0060.01016.48
7.3.120.0090.00914.82
7.3.110.0030.01414.60
7.3.100.0070.00714.66
7.3.90.0160.00314.89
7.3.80.0000.01514.50
7.3.70.0030.00914.70
7.3.60.0110.00314.75
7.3.50.0030.00614.70
7.3.40.0040.01114.92
7.3.30.0000.01114.71
7.3.20.0120.00316.66
7.3.10.0030.00816.63
7.3.00.0080.00316.34
7.2.330.0090.00916.80
7.2.320.0140.00716.68
7.2.310.0030.01416.57
7.2.300.0040.01316.45
7.2.290.0090.01616.64
7.2.250.0030.01514.87
7.2.240.0070.01115.20
7.2.230.0030.00715.08
7.2.220.0030.01315.14
7.2.210.0140.00314.72
7.2.200.0060.00915.18
7.2.190.0030.01414.91
7.2.180.0040.00814.98
7.2.170.0090.00614.86
7.2.130.0100.00616.93
7.2.120.0000.01016.95
7.2.110.0090.00616.68
7.2.100.0060.01216.92
7.2.90.0000.01316.99
7.2.80.0000.01416.95
7.2.70.0030.01216.79
7.2.60.0080.00716.70
7.2.50.0070.00316.96
7.2.40.0060.00916.68
7.2.30.0070.00416.98
7.2.20.0090.00316.88
7.2.10.0150.00016.83
7.2.00.0070.00718.17
7.1.330.0030.01315.65
7.1.320.0070.00715.77
7.1.310.0090.00615.58
7.1.300.0080.00315.97
7.1.290.0060.00615.69
7.1.280.0090.00615.71
7.1.270.0070.00415.65
7.1.260.0030.01015.79
7.1.250.0070.00715.74
7.1.200.0080.00815.63
7.1.100.0000.01018.12
7.1.70.0040.00817.13
7.1.60.0210.00319.36
7.1.50.0100.01016.80
7.1.00.0000.07722.48
7.0.200.0200.00814.80
7.0.60.0100.08019.93
7.0.50.0030.04717.84
7.0.40.0070.04320.24
7.0.30.0330.05720.13
7.0.20.0330.07720.20
7.0.10.0030.05320.26
7.0.00.0130.05720.20
5.6.280.0000.07720.99
5.6.210.0000.09720.50
5.6.200.0130.07718.23
5.6.190.0030.04320.41
5.6.180.0170.05020.70
5.6.170.0230.09320.55
5.6.160.0130.05320.57
5.6.150.0070.06318.12
5.6.140.0070.03718.25
5.6.130.0070.03718.14
5.6.120.0030.07021.14
5.6.110.0100.08320.98
5.6.100.0270.05320.96
5.6.90.0300.06320.98
5.6.80.0130.07020.53
5.5.350.0200.07720.52
5.5.340.0070.08018.04
5.5.330.0070.07020.29
5.5.320.0000.08720.19
5.5.310.0330.07020.32
5.5.300.0000.08718.08
5.5.290.0100.05017.91
5.5.280.0100.05020.76
5.5.270.0170.07720.76
5.5.260.0070.08320.79
5.5.250.0130.07720.79
5.5.240.0300.07320.14

preferences:
41.71 ms | 400 KiB | 5 Q