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('~^0+[1-9]~', $test) ? ' fail' : ' pass') . "\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.0110.00919.48
8.5.10.0100.00716.90
8.5.00.0180.00420.24
8.4.170.0090.01223.86
8.4.160.0160.00723.82
8.4.150.0020.00014.05
8.4.140.0130.00717.43
8.4.130.0140.00617.95
8.4.120.0090.00324.04
8.4.110.0120.00820.65
8.4.100.0110.00818.78
8.4.90.0090.01220.30
8.4.80.0110.00917.95
8.4.70.0140.00618.36
8.4.60.0100.01018.80
8.4.50.0100.01218.72
8.4.40.0120.00917.59
8.4.30.0080.00018.59
8.4.20.0170.00320.54
8.4.10.0130.00622.35
8.3.300.0130.00820.20
8.3.290.0100.01018.62
8.3.280.0030.00014.05
8.3.270.0070.01316.68
8.3.260.0130.00716.61
8.3.250.0080.00317.37
8.3.240.0050.00316.98
8.3.230.0150.00516.73
8.3.220.0040.00418.77
8.3.210.0090.00318.46
8.3.200.0030.00616.61
8.3.190.0100.00917.36
8.3.180.0090.01016.89
8.3.170.0070.00717.16
8.3.160.0090.00920.34
8.3.150.0070.01118.54
8.3.140.0090.00618.71
8.3.130.0030.00718.51
8.3.120.0060.00320.82
8.3.110.0030.00720.94
8.3.100.0070.00424.06
8.3.90.0090.00926.77
8.3.80.0090.00019.36
8.3.70.0120.00616.75
8.3.60.0090.00616.88
8.3.50.0110.00724.48
8.3.40.0130.00718.82
8.3.30.0070.00719.25
8.3.20.0080.00024.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.300.0130.00818.25
8.2.290.0090.00820.00
8.2.280.0150.00518.40
8.2.270.0110.00817.17
8.2.260.0040.00416.51
8.2.250.0090.00916.87
8.2.240.0000.00918.91
8.2.230.0060.00322.58
8.2.220.0090.00037.54
8.2.210.0070.00026.77
8.2.200.0040.00418.88
8.2.190.0180.00416.58
8.2.180.0130.01025.92
8.2.170.0110.00422.96
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.00
8.2.110.0030.00620.32
8.2.100.0070.00417.97
8.2.90.0040.00419.09
8.2.80.0030.00617.97
8.2.70.0040.00417.75
8.2.60.0000.01017.80
8.2.50.0040.00418.09
8.2.40.0040.00420.64
8.2.30.0000.00818.13
8.2.20.0000.00718.01
8.2.10.0000.00719.33
8.2.00.0040.00419.27
8.1.340.0090.01019.82
8.1.330.0150.00421.92
8.1.320.0170.00416.46
8.1.310.0120.00618.48
8.1.300.0030.00618.47
8.1.290.0000.01130.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0120.00017.61
8.1.230.0040.00722.75
8.1.220.0080.00017.74
8.1.210.0000.00818.84
8.1.200.0060.00317.25
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0030.00618.73
8.1.160.0070.00022.00
8.1.150.0040.00418.92
8.1.140.0030.00518.97
8.1.130.0000.00720.06
8.1.120.0030.00717.69
8.1.110.0000.00717.59
8.1.100.0000.00817.46
8.1.90.0070.00017.57
8.1.80.0000.00717.59
8.1.70.0040.00417.59
8.1.60.0000.00817.69
8.1.50.0030.00517.57
8.1.40.0040.00417.63
8.1.30.0060.00317.84
8.1.20.0000.00817.78
8.1.10.0040.00717.67
8.1.00.0080.00017.50
8.0.300.0070.00020.18
8.0.290.0050.00216.75
8.0.280.0000.00718.39
8.0.270.0040.00418.20
8.0.260.0000.00618.52
8.0.250.0030.00317.00
8.0.240.0030.00317.14
8.0.230.0050.00316.99
8.0.220.0000.00716.90
8.0.210.0000.00716.93
8.0.200.0070.00017.07
8.0.190.0040.00417.08
8.0.180.0070.00017.02
8.0.170.0000.00916.96
8.0.160.0060.00317.09
8.0.150.0000.00817.01
8.0.140.0050.00216.99
8.0.130.0050.00013.48
8.0.120.0050.00317.05
8.0.110.0040.00416.90
8.0.100.0040.00417.10
8.0.90.0060.00316.87
8.0.80.0110.00917.07
8.0.70.0050.00317.09
8.0.60.0040.00416.98
8.0.50.0000.00716.90
8.0.30.0140.00717.36
8.0.20.0130.00617.13
8.0.10.0030.00517.27
8.0.00.0130.00616.73
7.4.330.0000.00515.55
7.4.320.0030.00316.61
7.4.300.0000.00616.61
7.4.290.0040.00416.72
7.4.280.0000.00716.59
7.4.270.0030.00316.60
7.4.260.0000.00716.62
7.4.250.0030.00316.59
7.4.240.0020.00516.68
7.4.230.0000.00716.61
7.4.220.0020.00616.61
7.4.210.0110.00616.76
7.4.200.0080.00016.75
7.4.130.0090.00816.52
7.4.120.0120.00616.68
7.4.110.0030.01316.49
7.4.100.0150.00316.72
7.4.90.0120.00616.54
7.4.80.0120.00819.39
7.4.70.0090.00916.78
7.4.60.0150.00016.73
7.4.50.0090.00916.63
7.4.40.0000.01716.81
7.4.30.0100.00716.52
7.4.20.0060.01016.58
7.4.10.0070.01116.25
7.4.00.0150.00016.42
7.3.330.0000.00716.48
7.3.320.0030.00313.16
7.3.310.0040.00216.45
7.3.300.0000.00716.43
7.3.290.0060.01116.47
7.3.260.0140.01016.37
7.3.240.0090.00916.45
7.3.230.0100.00616.75
7.3.210.0060.00916.46
7.3.200.0120.00616.47
7.3.190.0120.00316.48
7.3.180.0120.00416.68
7.3.170.0100.00716.45
7.3.160.0130.00916.56
7.3.150.0100.00716.71
7.3.140.0040.01216.79
7.3.130.0110.00816.45
7.3.120.0060.00916.71
7.3.110.0170.00416.48
7.3.100.0140.00716.23
7.3.90.0030.01316.76
7.3.80.0100.00616.72
7.3.70.0060.01016.56
7.3.60.0070.01116.48
7.3.50.0090.01216.55
7.3.40.0110.00516.46
7.3.30.0070.01016.54
7.3.20.0090.00916.71
7.3.10.0150.00316.53
7.3.00.0120.00416.66
7.2.330.0070.01116.82
7.2.320.0190.00316.70
7.2.310.0080.00916.73
7.2.300.0100.00716.78
7.2.290.0070.01416.54
7.2.280.0140.00316.71
7.2.270.0080.00816.56
7.2.260.0060.00916.74
7.2.250.0090.00616.57
7.2.240.0140.00716.58
7.2.230.0040.01316.69
7.2.220.0110.00616.64
7.2.210.0070.01016.85
7.2.200.0070.01016.71
7.2.190.0090.00916.68
7.2.180.0080.00816.60
7.2.170.0030.01316.68
7.2.160.0100.00616.62
7.2.150.0100.00716.71
7.2.140.0040.01516.73
7.2.130.0070.01016.74
7.2.120.0070.01016.72
7.2.110.0040.01216.74
7.2.100.0070.01116.73
7.2.90.0140.00516.81
7.2.80.0250.01316.73
7.2.70.0100.01016.55
7.2.60.0040.01916.69
7.2.50.0170.00716.69
7.2.40.0120.01216.91
7.2.30.0210.00316.88
7.2.20.0180.00616.70
7.2.10.0070.01716.77
7.2.00.0100.01416.73

preferences:
31.59 ms | 403 KiB | 5 Q