3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ '00.12', '0.12', '00', '0', '0012.12', '00023', ]; foreach ($tests as $test) { echo $test . (preg_match('~^(?:[1-9]\d*|0{1,2})(?:\.\d{2})?$~', $test) ? ' pass' : ' fail') . "\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.5.20.0080.00819.41
8.5.10.0100.00816.77
8.5.00.0120.01219.97
8.4.170.0130.00923.67
8.4.160.0140.01323.78
8.4.150.0020.00114.05
8.4.140.0090.01119.48
8.4.130.0100.01017.93
8.4.120.0100.01020.57
8.4.110.0060.00318.09
8.4.100.0130.00717.85
8.4.90.0140.00620.62
8.4.80.0100.00920.54
8.4.70.0070.00118.21
8.4.60.0160.00418.73
8.4.50.0130.00817.79
8.4.40.0090.00617.99
8.4.30.0090.01318.52
8.4.20.0120.00820.69
8.4.10.0100.00620.75
8.3.300.0140.00820.80
8.3.290.0110.01120.60
8.3.280.0120.00818.30
8.3.270.0080.01316.71
8.3.260.0120.00816.50
8.3.250.0130.00618.94
8.3.240.0120.00716.86
8.3.230.0070.01216.71
8.3.220.0040.00318.81
8.3.210.0060.00118.80
8.3.200.0090.00116.67
8.3.190.0140.00517.30
8.3.180.0080.00916.86
8.3.170.0060.00317.07
8.3.160.0110.00718.57
8.3.150.0120.00617.36
8.3.140.0090.00916.61
8.3.130.0000.00918.32
8.3.120.0030.00618.95
8.3.110.0040.00420.94
8.3.100.0000.00924.06
8.3.90.0000.00826.77
8.3.80.0090.00019.36
8.3.70.0140.00316.88
8.3.60.0110.00716.88
8.3.50.0080.01224.62
8.3.40.0090.00618.79
8.3.30.0070.01019.17
8.3.20.0090.00024.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.300.0120.00823.83
8.2.290.0120.00817.05
8.2.280.0110.00620.27
8.2.270.0110.00716.70
8.2.260.0030.00518.79
8.2.250.0050.00316.66
8.2.240.0040.00819.05
8.2.230.0130.00322.58
8.2.220.0060.00337.54
8.2.210.0130.00726.77
8.2.200.0030.00618.88
8.2.190.0110.00416.88
8.2.180.0040.01125.92
8.2.170.0140.00722.96
8.2.160.0100.00322.96
8.2.150.0000.00825.66
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00426.35
8.2.110.0000.01019.38
8.2.100.0090.00817.84
8.2.90.0050.00319.08
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0030.00517.93
8.2.50.0000.00818.07
8.2.40.0040.00420.01
8.2.30.0040.00418.09
8.2.20.0000.00717.96
8.2.10.0040.00419.25
8.2.00.0000.00719.32
8.1.340.0130.00917.68
8.1.330.0140.00516.36
8.1.320.0080.00216.33
8.1.310.0080.00616.64
8.1.300.0030.00616.57
8.1.290.0000.01130.84
8.1.280.0140.00725.92
8.1.270.0140.00020.61
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0000.00921.36
8.1.230.0110.00019.05
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.48
8.1.190.0030.00717.22
8.1.180.0030.00618.10
8.1.170.0080.00018.78
8.1.160.0000.00718.88
8.1.150.0050.00218.91
8.1.140.0040.00418.97
8.1.130.0050.00220.15
8.1.120.0030.00717.64
8.1.110.0040.00417.59
8.1.100.0040.00417.62
8.1.90.0080.00017.64
8.1.80.0040.00417.60
8.1.70.0000.00717.57
8.1.60.0050.00317.71
8.1.50.0020.00517.56
8.1.40.0000.00917.56
8.1.30.0000.00817.82
8.1.20.0000.00817.63
8.1.10.0040.00717.67
8.1.00.0030.00517.52
8.0.300.0050.00518.77
8.0.290.0000.01216.62
8.0.280.0070.00018.51
8.0.270.0030.00318.11
8.0.260.0060.00018.39
8.0.250.0070.00017.11
8.0.240.0040.00417.14
8.0.230.0070.00017.07
8.0.220.0000.00716.93
8.0.210.0030.00516.93
8.0.200.0040.00417.07
8.0.190.0000.00717.16
8.0.180.0000.00817.10
8.0.170.0030.00616.94
8.0.160.0030.00316.98
8.0.150.0000.00716.99
8.0.140.0000.00717.01
8.0.130.0000.00613.41
8.0.120.0000.00817.00
8.0.110.0070.00017.07
8.0.100.0020.00516.87
8.0.90.0060.00316.92
8.0.80.0090.01117.03
8.0.70.0000.00816.99
8.0.60.0040.00417.10
8.0.50.0040.00417.03
8.0.30.0100.01017.29
8.0.20.0150.00416.96
8.0.10.0030.00617.05
8.0.00.0090.00916.77
7.4.330.0000.00515.55
7.4.320.0030.00316.61
7.4.300.0060.00016.81
7.4.290.0070.00016.61
7.4.280.0040.00416.71
7.4.270.0030.00316.73
7.4.260.0000.00513.55
7.4.250.0040.00416.60
7.4.240.0060.00116.76
7.4.230.0070.00016.91
7.4.220.0040.00416.84
7.4.210.0100.00816.73
7.4.200.0040.00416.89
7.4.130.0100.00716.75
7.4.120.0150.00616.67
7.4.110.0140.00316.57
7.4.100.0090.00916.84
7.4.90.0090.00916.56
7.4.80.0070.01019.39
7.4.70.0060.01016.45
7.4.60.0090.00916.71
7.4.50.0100.00716.55
7.4.40.0100.00616.80
7.4.30.0060.01116.61
7.4.20.0140.00916.57
7.4.10.0100.00616.61
7.4.00.0060.01216.61
7.3.330.0030.00316.42
7.3.320.0000.00913.32
7.3.310.0030.00616.51
7.3.300.0040.00416.40
7.3.290.0070.01116.42
7.3.260.0040.01416.71
7.3.240.0080.00916.50
7.3.230.0060.01216.64
7.3.210.0110.00616.44
7.3.200.0060.01316.66
7.3.190.0150.00316.75
7.3.180.0060.01516.72
7.3.170.0110.00716.58
7.3.160.0170.00316.61
7.3.150.0110.00616.51
7.3.140.0030.01316.42
7.3.130.0070.01016.64
7.3.120.0130.00616.29
7.3.110.0070.01316.79
7.3.100.0110.00616.57
7.3.90.0100.00616.61
7.3.80.0000.02016.70
7.3.70.0090.00916.44
7.3.60.0100.01216.45
7.3.50.0100.00716.34
7.3.40.0130.00316.52
7.3.30.0050.01116.64
7.3.20.0100.00616.46
7.3.10.0040.01116.48
7.3.00.0080.00816.41
7.2.330.0060.01416.85
7.2.320.0140.00316.75
7.2.310.0060.01216.75
7.2.300.0110.00716.77
7.2.290.0060.01216.93
7.2.280.0130.01016.78
7.2.270.0090.00916.54
7.2.260.0040.01216.79
7.2.250.0160.00816.74
7.2.240.0140.00316.88
7.2.230.0130.00316.80
7.2.220.0000.01716.70
7.2.210.0090.00916.74
7.2.200.0000.01816.61
7.2.190.0180.00616.64
7.2.180.0140.00416.73
7.2.170.0100.00616.68
7.2.160.0110.00516.59
7.2.150.0100.00716.82
7.2.140.0070.01016.84
7.2.130.0060.01016.68
7.2.120.0100.00716.87
7.2.110.0170.00016.64
7.2.100.0120.00616.73
7.2.90.0030.01516.64
7.2.80.0040.01316.81
7.2.70.0130.00716.77
7.2.60.0110.00716.74
7.2.50.0080.00816.71
7.2.40.0100.00716.82
7.2.30.0040.01316.87
7.2.20.0110.00716.84
7.2.10.0250.00716.73
7.2.00.0130.00316.82

preferences:
96 ms | 403 KiB | 5 Q