3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = ['hi', 'hi<', 'what&now', '', '&gt;', "\t"]; foreach ($tests as $test) { if (!preg_match('~^[^ <>&\t]+$~', $test)) { $test = 'anonymous'; } echo "$test\n"; }

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.0140.00416.75
8.3.50.0070.01318.17
8.3.40.0190.00318.83
8.3.30.0080.00619.13
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.180.0070.00725.92
8.2.170.0110.00422.96
8.2.160.0070.01122.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0030.00519.79
8.2.110.0050.00519.25
8.2.100.0150.00417.78
8.2.90.0000.00817.75
8.2.80.0050.00319.04
8.2.70.0000.00817.88
8.2.60.0040.00417.63
8.2.50.0040.00419.32
8.2.40.0050.00321.13
8.2.30.0040.00419.26
8.2.20.0050.00217.95
8.2.10.0000.00719.26
8.2.00.0000.00819.14
8.1.280.0070.00725.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00023.84
8.1.230.0070.00319.00
8.1.220.0000.00817.76
8.1.210.0030.00618.77
8.1.200.0080.00017.35
8.1.190.0040.00417.40
8.1.180.0080.00018.95
8.1.170.0000.00818.66
8.1.160.0040.00419.02
8.1.150.0000.00718.96
8.1.140.0000.00718.89
8.1.130.0000.00720.21
8.1.120.0030.00317.62
8.1.110.0030.00517.59
8.1.100.0000.00817.52
8.1.90.0040.00417.49
8.1.80.0030.00617.50
8.1.70.0000.00717.48
8.1.60.0080.00017.64
8.1.50.0030.00617.54
8.1.40.0040.00417.60
8.1.30.0030.00617.80
8.1.20.0000.00817.78
8.1.10.0000.00817.59
8.1.00.0000.00917.47
8.0.300.0070.00018.84
8.0.290.0040.00416.88
8.0.280.0080.00018.46
8.0.270.0070.00016.93
8.0.260.0030.00320.13
8.0.250.0030.00317.00
8.0.240.0030.00317.13
8.0.230.0070.00017.06
8.0.220.0030.00616.98
8.0.210.0070.00016.96
8.0.200.0070.00017.07
8.0.190.0000.00717.05
8.0.180.0040.00417.11
8.0.170.0090.00017.00
8.0.160.0000.00816.93
8.0.150.0050.00317.08
8.0.140.0050.00216.94
8.0.130.0000.00613.41
8.0.120.0000.00716.83
8.0.110.0080.00016.86
8.0.100.0040.00417.02
8.0.90.0090.00017.03
8.0.80.0100.00516.99
8.0.70.0040.00417.01
8.0.60.0050.00316.94
8.0.50.0040.00416.98
8.0.30.0120.00617.41
8.0.20.0030.02216.93
8.0.10.0040.00417.14
8.0.00.0120.00617.22
7.4.330.0000.00615.55
7.4.320.0030.00316.82
7.4.300.0000.00616.55
7.4.290.0080.00016.72
7.4.280.0060.00316.70
7.4.270.0030.00316.70
7.4.260.0000.00613.52
7.4.250.0030.00316.80
7.4.240.0040.00416.81
7.4.230.0000.00716.77
7.4.220.0050.00216.75
7.4.210.0040.01016.70
7.4.200.0040.00416.79
7.4.130.0130.00516.81
7.4.120.0060.01216.75
7.4.110.0110.00716.79
7.4.100.0110.00516.69
7.4.90.0100.00716.66
7.4.80.0100.00619.39
7.4.70.0060.01016.73
7.4.60.0130.00316.57
7.4.50.0120.01216.59
7.4.40.0060.01016.40
7.4.30.0070.01116.27
7.4.20.0070.01016.42
7.4.10.0070.01016.68
7.4.00.0120.00916.70
7.3.330.0000.00816.35
7.3.320.0070.00013.32
7.3.310.0030.00616.33
7.3.300.0020.00516.42
7.3.290.0070.00916.43
7.3.260.0060.01216.68
7.3.240.0060.01116.67
7.3.230.0100.00616.55
7.3.210.0170.00016.77
7.3.200.0130.00316.44
7.3.190.0030.01216.43
7.3.180.0070.01816.68
7.3.170.0100.00716.46
7.3.160.0030.01316.29
7.3.150.0190.00316.35
7.3.140.0090.01416.65
7.3.130.0070.01116.37
7.3.120.0070.01016.46
7.3.110.0070.01016.37
7.3.100.0070.01016.19
7.3.90.0100.01316.60
7.3.80.0110.00716.56
7.3.70.0060.01216.60
7.3.60.0130.00716.59
7.3.50.0120.00916.53
7.3.40.0150.00716.61
7.3.30.0060.01116.59
7.3.20.0150.00316.48
7.3.10.0070.01316.44
7.3.00.0070.01016.52
7.2.330.0050.01316.79
7.2.320.0160.00616.66
7.2.310.0140.00416.70
7.2.300.0090.00916.78
7.2.290.0030.01316.54
7.2.280.0030.01316.59
7.2.270.0040.01216.55
7.2.260.0070.01116.80
7.2.250.0060.01216.72
7.2.240.0200.00416.86
7.2.230.0120.01516.68
7.2.220.0070.01616.76
7.2.210.0120.00616.79
7.2.200.0040.01716.41
7.2.190.0070.01716.69
7.2.180.0160.00916.63
7.2.170.0070.01016.66
7.2.160.0150.00316.71
7.2.150.0130.00616.86
7.2.140.0030.01516.79
7.2.130.0040.01316.66
7.2.120.0030.01716.60
7.2.110.0130.01016.80
7.2.100.0070.01016.80
7.2.90.0110.00716.70
7.2.80.0090.00916.66
7.2.70.0090.00916.63
7.2.60.0110.00716.75
7.2.50.0140.00416.75
7.2.40.0160.00616.79
7.2.30.0120.00616.75
7.2.20.0090.00916.72
7.2.10.0150.00316.74
7.2.00.0170.00616.81

preferences:
62.07 ms | 400 KiB | 5 Q