3v4l.org

run code in 300+ PHP versions simultaneously
<?php hell: try { echo PHP; echo has; echo barewords; echo kinda; } catch (\Error $e) { if (str_contains($e->getMessage(), 'Undefined constant')) { $constValue = substr($e->getMessage(), 20, -1); define($constValue, $constValue . ' '); goto hell; } }

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.0030.01516.74
8.3.60.0070.00716.63
8.3.50.0170.00317.97
8.3.40.0110.00421.76
8.3.30.0100.00718.67
8.3.20.0070.00024.18
8.3.10.0060.00324.66
8.3.00.0080.00026.16
8.2.190.0110.00417.00
8.2.180.0110.01125.92
8.2.170.0090.00619.03
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0060.00320.71
8.2.110.0070.00319.94
8.2.100.0080.00417.84
8.2.90.0070.00417.75
8.2.80.0040.00418.63
8.2.70.0000.00817.59
8.2.60.0060.00317.75
8.2.50.0030.00518.05
8.2.40.0040.00418.16
8.2.30.0040.00418.07
8.2.20.0040.00418.13
8.2.10.0040.00419.34
8.2.00.0050.00219.32
8.1.280.0120.00325.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.25
8.1.230.0100.00322.66
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0080.00017.36
8.1.190.0030.00617.13
8.1.180.0050.00318.10
8.1.170.0040.00418.70
8.1.160.0030.00318.96
8.1.150.0030.00618.95
8.1.140.0000.00718.81
8.1.130.0030.00320.03
8.1.120.0040.00417.37
8.1.110.0030.00517.35
8.1.100.0000.00817.46
8.1.90.0040.00417.40
8.1.80.0030.00917.49
8.1.70.0000.00717.46
8.1.60.0070.00317.61
8.1.50.0040.00717.57
8.1.40.0080.00017.59
8.1.30.0080.00017.64
8.1.20.0080.00017.68
8.1.10.0000.00817.61
8.1.00.0000.00917.49
8.0.300.0060.00318.77
8.0.290.0050.00316.88
8.0.280.0000.00718.33
8.0.270.0000.00718.02
8.0.260.0000.00718.51
8.0.250.0070.00016.96
8.0.240.0060.00017.04
8.0.230.0070.00016.92
8.0.220.0060.00316.98
8.0.210.0030.00316.89
8.0.200.0070.00017.06
8.0.190.0000.00817.09
8.0.180.0040.00416.97
8.0.170.0040.00416.99
8.0.160.0040.00416.93
8.0.150.0030.00616.94
8.0.140.0040.00416.81
8.0.130.0030.00313.49
8.0.120.0020.00516.89
8.0.110.0070.00016.86
8.0.100.0030.00516.85
8.0.90.0000.00716.77
8.0.80.0060.01016.94
8.0.70.0040.00417.03
8.0.60.0000.00816.93
8.0.50.0050.00316.85
8.0.30.0120.00817.09
8.0.20.0120.00616.91
8.0.10.0070.00017.20
8.0.00.0120.00616.79
7.4.330.0020.00215.55
7.4.320.0070.00016.47
7.4.300.0030.00316.55
7.4.290.0080.00016.48
7.4.280.0030.00716.35
7.4.270.0060.00316.45
7.4.260.0030.00313.34
7.4.250.0050.00316.52
7.4.240.0000.00716.44
7.4.230.0030.00316.40
7.4.220.0030.00416.53
7.4.210.0080.00816.49
7.4.200.0030.00516.53
7.4.130.0120.00616.53
7.4.120.0090.00916.18
7.4.110.0090.00916.36
7.4.100.0150.00416.41
7.4.90.0170.00316.44
7.4.80.0050.01316.28
7.4.70.0120.00616.48
7.4.60.0060.01216.30
7.4.50.0170.00016.26
7.4.40.0110.00716.51
7.4.30.0060.01216.61
7.4.20.0030.01316.63
7.4.10.0070.01016.41
7.4.00.0000.01616.63
7.3.330.0000.00716.29
7.3.320.0000.00513.14
7.3.310.0030.00316.14
7.3.300.0030.00316.04
7.3.290.0100.00416.20
7.3.260.0090.01216.62
7.3.250.0110.00816.05
7.3.240.0130.00316.26
7.3.230.0170.00716.31
7.3.220.0160.00316.14
7.3.210.0150.00416.35
7.3.200.0110.00716.18
7.3.190.0070.01116.38
7.3.180.0100.01416.20
7.3.170.0160.00616.32
7.3.160.0090.00816.27
7.3.150.0120.00616.12
7.3.140.0060.01016.14
7.3.130.0060.01016.32
7.3.120.0070.01016.38
7.3.110.0030.01316.22
7.3.100.0110.01216.27
7.3.90.0090.00916.20
7.3.80.0130.00316.27
7.3.70.0070.01016.18
7.3.60.0170.00016.19
7.3.50.0000.01616.18
7.3.40.0100.01316.27
7.3.30.0110.00616.25
7.3.20.0120.00616.36
7.3.10.0070.01016.28
7.3.00.0130.00316.18

preferences:
17.83 ms | 401 KiB | 5 Q