3v4l.org

run code in 300+ PHP versions simultaneously
<?php hell: try { $str = PHP; $str .= has; $str .= barewords; $str .= kinda; echo $str; } 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.60.0070.00718.55
8.3.50.0000.01518.25
8.3.40.0130.00721.90
8.3.30.0070.00718.89
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.180.0040.01125.92
8.2.170.0060.00918.80
8.2.160.0160.00322.96
8.2.150.0100.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00326.35
8.2.110.0030.00621.00
8.2.100.0070.00417.80
8.2.90.0030.00620.60
8.2.80.0050.00317.97
8.2.70.0060.00318.16
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0090.00019.36
8.2.30.0040.00419.33
8.2.20.0050.00218.02
8.2.10.0000.00719.32
8.2.00.0040.00419.23
8.1.280.0140.00725.92
8.1.270.0030.00623.99
8.1.260.0000.00728.09
8.1.250.0090.00028.09
8.1.240.0060.00323.97
8.1.230.0040.00822.73
8.1.220.0040.00417.79
8.1.210.0000.00818.97
8.1.200.0000.00817.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.43
8.1.160.0030.00518.95
8.1.150.0040.00418.78
8.1.140.0000.00718.86
8.1.130.0040.00417.40
8.1.120.0000.00717.49
8.1.110.0000.00817.38
8.1.100.0090.00017.36
8.1.90.0070.00017.39
8.1.80.0040.00817.48
8.1.70.0030.00317.45
8.1.60.0040.00417.60
8.1.50.0120.00017.54
8.1.40.0050.00317.57
8.1.30.0000.00717.60
8.1.20.0040.00517.61
8.1.10.0030.01117.59
8.1.00.0070.00717.54
8.0.300.0040.00420.02
8.0.290.0070.00016.63
8.0.280.0040.00418.52
8.0.270.0000.00716.77
8.0.260.0040.00716.90
8.0.250.0030.00517.07
8.0.240.0060.00017.00
8.0.230.0000.00716.94
8.0.220.0040.00317.01
8.0.210.0040.00316.93
8.0.200.0040.00416.92
8.0.190.0070.00017.02
8.0.180.0070.00017.00
8.0.170.0000.00817.00
8.0.160.0040.00416.98
8.0.150.0000.01116.91
8.0.140.0100.00316.85
8.0.130.0060.00515.15
8.0.120.0070.00716.87
8.0.110.0100.00616.92
8.0.100.0080.00516.98
8.0.90.0110.00316.86
8.0.80.0090.00816.93
8.0.70.0110.00216.89
8.0.60.0110.00216.89
8.0.50.0080.00516.81
8.0.30.0150.00516.99
8.0.20.0110.00917.09
8.0.10.0170.00616.99
8.0.00.0140.00616.99
7.4.330.0050.00015.55
7.4.320.0030.00316.53
7.4.300.0030.00316.60
7.4.290.0000.00716.49
7.4.280.0120.00016.53
7.4.270.0050.00816.57
7.4.260.0130.00216.47
7.4.250.0080.00516.53
7.4.240.0120.00516.50
7.4.230.0140.00116.59
7.4.220.0050.00616.53
7.4.210.0080.01016.50
7.4.200.0070.00716.55
7.4.190.0190.00516.55
7.4.180.0100.01016.67
7.4.160.0090.00716.57
7.4.150.0160.00316.57
7.4.140.0170.00416.49
7.4.130.0140.00816.46
7.4.120.0120.00716.46
7.4.110.0140.00616.44
7.4.100.0160.00616.48
7.4.90.0130.00716.43
7.4.80.0140.00716.38
7.4.70.0140.00716.50
7.4.60.0130.00716.44
7.4.50.0100.00816.41
7.4.40.0120.00716.38
7.4.30.0140.00616.41
7.4.20.0100.00916.38
7.4.10.0080.00916.41
7.4.00.0070.00916.50
7.3.330.0120.00116.20
7.3.320.0100.00314.62
7.3.310.0040.00816.21
7.3.300.0090.00516.26
7.3.290.0110.00516.27
7.3.280.0160.00316.29
7.3.270.0110.00916.32
7.3.260.0130.00716.29
7.3.250.0120.00816.25
7.3.240.0110.00816.25
7.3.230.0120.00916.30
7.3.220.0130.00816.35
7.3.210.0120.00816.36
7.3.200.0160.00716.30
7.3.190.0120.00916.36
7.3.180.0140.00516.40
7.3.170.0110.01016.32
7.3.160.0140.00616.19
7.3.150.0160.00416.28
7.3.140.0160.00516.31
7.3.130.0110.00916.31
7.3.120.0130.00816.16
7.3.110.0120.00816.21
7.3.100.0140.00716.23
7.3.90.0140.00516.45
7.3.80.0110.00916.37
7.3.70.0120.00716.32
7.3.60.0150.00516.31
7.3.50.0120.00716.32
7.3.40.0160.00516.33
7.3.30.0130.00616.33
7.3.20.0100.00916.80
7.3.10.0070.01216.78
7.3.00.0150.00616.78

preferences:
76.07 ms | 400 KiB | 5 Q