3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = trim("0x030"); if( str_split($input) == array(0,0,0,0) || strcmp($input, "0000") == 0 || strcmp($input, "000") == 0 || strcmp($input, "00") == 0 || strcmp($input, "0") == 0 || $input === 0 || preg_match("/^[\d]{1,}$/D", $input) )print("FAIL"); if($input == "0000") print("SUCCESS"); print(chr($input)); ?>

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.0110.00718.30
8.3.50.0090.01021.17
8.3.40.0070.00718.82
8.3.30.0040.01418.96
8.3.20.0000.00720.21
8.3.10.0040.00423.66
8.3.00.0040.00422.55
8.2.180.0130.00317.00
8.2.170.0120.00322.96
8.2.160.0000.01420.18
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0060.00317.88
8.2.110.0070.00419.21
8.2.100.0040.00817.88
8.2.90.0050.00319.22
8.2.80.0000.00818.00
8.2.70.0050.00317.62
8.2.60.0030.00617.93
8.2.50.0070.00318.07
8.2.40.0000.00821.01
8.2.30.0030.00519.82
8.2.20.0000.00817.81
8.2.10.0030.00517.95
8.2.00.0050.00217.99
8.1.280.0110.00425.92
8.1.270.0030.00620.28
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00722.66
8.1.230.0060.00617.48
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0030.00617.38
8.1.180.0000.00818.10
8.1.170.0000.00918.83
8.1.160.0070.00022.02
8.1.150.0040.00418.89
8.1.140.0050.00317.64
8.1.130.0060.00317.76
8.1.120.0070.00017.63
8.1.110.0030.00617.52
8.1.100.0000.00717.63
8.1.90.0040.00417.56
8.1.80.0040.00417.59
8.1.70.0000.00717.51
8.1.60.0040.00417.72
8.1.50.0000.00817.61
8.1.40.0030.00517.68
8.1.30.0080.00017.69
8.1.20.0040.00417.82
8.1.10.0070.00017.72
8.1.00.0040.00417.62
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.38
8.0.270.0040.00317.30
8.0.260.0000.00717.21
8.0.250.0040.00417.16
8.0.240.0050.00217.15
8.0.230.0000.00716.99
8.0.220.0070.00017.05
8.0.210.0000.00817.05
8.0.200.0030.00717.07
8.0.190.0000.00717.13
8.0.180.0040.00417.16
8.0.170.0000.00817.11
8.0.160.0000.00717.08
8.0.150.0040.00417.07
8.0.140.0030.00317.08
8.0.130.0030.00313.58
8.0.120.0060.00317.04
8.0.110.0070.00017.09
8.0.100.0040.00417.09
8.0.90.0080.00016.91
8.0.80.0070.01017.13
8.0.70.0030.00616.91
8.0.60.0030.00517.16
8.0.50.0050.00216.92
8.0.30.0060.00917.24
8.0.20.0050.01317.40
8.0.10.0040.00417.20
8.0.00.0110.00717.06
7.4.330.0060.00015.09
7.4.320.0030.00316.79
7.4.300.0060.00016.70
7.4.290.0030.00316.59
7.4.280.0050.00316.74
7.4.270.0050.00316.83
7.4.260.0000.00716.69
7.4.250.0030.00516.75
7.4.240.0040.00416.74
7.4.230.0030.00316.70
7.4.220.0120.00616.73
7.4.210.0060.01216.64
7.4.200.0030.00516.61
7.4.160.0120.00916.65
7.4.150.0150.00317.40
7.4.140.0090.01217.86
7.4.130.0080.01116.92
7.4.120.0070.01016.76
7.4.110.0100.00716.64
7.4.100.0150.00616.75
7.4.90.0090.00916.75
7.4.80.0000.01819.39
7.4.70.0030.01416.75
7.4.60.0100.00716.54
7.4.50.0060.00716.49
7.4.40.0060.00916.52
7.4.30.0070.01016.40
7.4.20.0060.01216.46
7.4.10.0040.01116.63
7.4.00.0110.00616.23
7.3.330.0030.00313.36
7.3.320.0020.00313.37
7.3.310.0070.00016.51
7.3.300.0030.00316.47
7.3.290.0030.00316.52
7.3.280.0090.01116.57
7.3.270.0070.01017.40
7.3.260.0060.01116.72
7.3.250.0120.00516.59
7.3.240.0110.00616.56
7.3.230.0070.01016.48
7.3.210.0100.00616.76
7.3.200.0080.01116.46
7.3.190.0030.01416.53
7.3.180.0060.01116.61
7.3.170.0040.01216.29
7.3.160.0150.00316.55
7.3.150.0030.01416.42
7.3.140.0130.00316.57
7.3.130.0130.00316.36
7.3.120.0060.01016.56
7.3.110.0060.00916.55
7.3.100.0090.00616.48
7.3.90.0100.00716.57
7.3.80.0030.01416.52
7.3.70.0070.01116.58
7.3.60.0060.01216.48
7.3.50.0140.00316.62
7.3.40.0030.01316.57
7.3.30.0030.01216.32
7.3.20.0030.01316.49
7.3.10.0120.00516.37
7.3.00.0090.00516.45
7.2.330.0110.00616.82
7.2.320.0080.00816.82
7.2.310.0090.00916.80
7.2.300.0070.01016.80
7.2.290.0070.01016.71
7.2.280.0090.00916.74
7.2.270.0080.00816.75
7.2.260.0130.00316.63
7.2.250.0110.00616.77
7.2.240.0030.01416.60
7.2.230.0100.00716.66
7.2.220.0040.01416.82
7.2.210.0070.01116.48
7.2.200.0150.00916.56
7.2.190.0110.00916.55
7.2.180.0050.01116.72
7.2.170.0120.00316.63
7.2.160.0140.00316.51
7.2.150.0000.01716.48
7.2.140.0130.00316.57
7.2.130.0130.00916.67
7.2.120.0110.00716.63
7.2.110.0130.00516.62
7.2.100.0100.00916.74
7.2.90.0080.00816.82
7.2.80.0120.00516.73
7.2.70.0090.01016.93
7.2.60.0090.00716.81
7.2.50.0090.00816.77
7.2.40.0120.00816.79
7.2.30.0070.00816.76
7.2.20.0110.00616.85
7.2.10.0100.00716.78
7.2.00.0070.00817.53
7.1.330.0110.00415.48
7.1.320.0140.00315.83
7.1.310.0040.01316.02
7.1.300.0100.00815.72
7.1.290.0100.00515.84
7.1.280.0100.00715.96
7.1.270.0100.00515.68
7.1.260.0070.01315.88
7.1.250.0080.00715.68
7.1.240.0040.01115.66
7.1.230.0130.00315.70
7.1.220.0070.01015.88
7.1.210.0030.01315.58
7.1.200.0090.00615.71
7.1.190.0050.01115.61
7.1.180.0030.01615.61
7.1.170.0100.01715.59
7.1.160.0070.01115.77
7.1.150.0090.00615.67
7.1.140.0070.01115.76
7.1.130.0100.00615.70
7.1.120.0050.01115.84
7.1.110.0030.01215.67
7.1.100.0110.00617.05
7.1.90.0030.01215.90
7.1.80.0070.01115.75
7.1.70.0070.00516.66
7.1.60.0090.01217.93
7.1.50.0070.01216.44
7.1.40.0090.00615.84
7.1.30.0090.00615.87
7.1.20.0070.01015.60
7.1.10.0070.00915.57
7.1.00.0050.04219.20
7.0.330.0060.00915.46
7.0.320.0040.01115.32
7.0.310.0110.00515.27
7.0.300.0120.00615.44
7.0.290.0070.01115.42
7.0.280.0150.00415.45
7.0.270.0120.00415.21
7.0.260.0000.01515.16
7.0.250.0000.01415.16
7.0.240.0000.01415.39
7.0.230.0130.00315.57
7.0.220.0060.01015.39
7.0.210.0000.01515.65
7.0.200.0300.00615.23
7.0.190.0110.00315.54
7.0.180.0030.01215.39
7.0.170.0150.00315.33
7.0.160.0090.00815.53
7.0.150.0040.01215.39
7.0.140.0120.00315.30
7.0.130.0070.00715.21
7.0.120.0110.00415.23
7.0.110.0000.01415.52
7.0.100.0060.00915.39
7.0.90.0140.00315.38
7.0.80.0070.00715.20
7.0.70.0030.01215.37
7.0.60.0080.04417.68
7.0.50.0050.03816.74
7.0.40.0100.04517.84
7.0.30.0250.03317.84
7.0.20.0100.02617.76
7.0.10.0100.04517.78
7.0.00.0090.02517.63
5.6.400.0000.01715.73
5.6.390.0060.01216.05
5.6.380.0140.00315.92
5.6.370.0070.01115.84
5.6.360.0060.01515.79
5.6.350.0060.01315.85
5.6.340.0140.00416.07
5.6.330.0040.01816.14
5.6.320.0110.00716.00
5.6.310.0080.00815.87
5.6.300.0060.01216.14
5.6.290.0000.01715.80
5.6.280.0050.02218.29
5.6.270.0070.01016.03
5.6.260.0040.01315.89
5.6.250.0060.01215.92
5.6.240.0100.00915.96
5.6.230.0130.00815.87
5.6.220.0030.01415.96
5.6.210.0130.04118.26
5.6.200.0120.04217.05
5.6.190.0100.04918.12
5.6.180.0130.02618.14
5.6.170.0220.05018.22
5.6.160.0030.04918.15
5.6.150.0080.02717.03
5.6.140.0120.02716.98
5.6.130.0090.03616.99
5.6.120.0070.02618.43
5.6.110.0070.02918.33
5.6.100.0100.04318.45
5.6.90.0130.04118.55
5.6.80.0070.04518.02
5.6.70.2280.01818.12
5.6.60.0140.00315.93
5.6.50.0030.01515.99
5.6.40.0090.00915.91
5.6.30.0030.01415.86
5.6.20.0040.01516.09
5.6.10.0120.00615.91
5.6.00.0090.01215.93
5.5.380.0170.00015.57
5.5.370.0170.00015.86
5.5.360.0090.00915.89
5.5.350.0130.03818.27
5.5.340.0050.02516.83
5.5.330.0080.04118.08
5.5.320.0110.04318.13
5.5.310.0200.04218.09
5.5.300.0070.04916.84
5.5.290.0170.02816.95
5.5.280.0020.02818.30
5.5.270.0050.03718.45
5.5.260.0050.03918.20
5.5.250.0050.04818.13
5.5.240.0200.04018.08
5.5.230.0090.01215.71
5.5.220.0150.00615.95
5.5.210.0060.01115.88
5.5.200.0120.00915.76
5.5.190.0120.00616.01
5.5.180.0100.00715.72
5.5.170.0060.01215.88
5.5.160.0140.00715.88
5.5.150.0090.01215.83
5.5.140.0070.01115.77
5.5.130.0100.00715.73
5.5.120.0070.01115.78
5.5.110.0090.00916.04
5.5.100.0110.00715.64
5.5.90.0030.01415.69
5.5.80.0090.00915.85
5.5.70.0060.01215.88
5.5.60.0180.00015.82
5.5.50.0070.01015.76
5.5.40.0100.00615.76
5.5.30.0140.00315.90
5.5.20.0090.00915.88
5.5.10.0030.01415.90
5.5.00.0120.00615.61
5.4.450.0500.02816.10
5.4.440.0530.04116.20
5.4.430.0530.02716.13
5.4.420.0410.03315.97
5.4.410.0490.02815.83
5.4.400.0360.03415.83
5.4.390.0470.02915.86
5.4.380.0450.02715.76
5.4.370.0430.02815.72
5.4.360.0380.03315.84
5.4.350.0460.02615.82
5.4.340.0500.02815.96
5.4.330.0130.00012.63
5.4.320.0450.03315.66
5.4.310.0430.03115.91
5.4.300.0450.02815.81
5.4.290.0420.03015.80
5.4.280.0450.03015.76
5.4.270.0430.03015.77
5.4.260.0470.03615.85
5.4.250.0470.03515.67
5.4.240.0370.03615.95
5.4.230.0430.03115.83
5.4.220.0500.03315.83
5.4.210.0470.02815.79
5.4.200.0510.02314.81
5.4.190.0430.02815.86
5.4.180.0420.03315.92
5.4.170.0450.03215.83
5.4.160.0480.03515.93
5.4.150.0420.03215.76
5.4.140.0460.02514.38
5.4.130.0400.02814.45
5.4.120.0430.03014.60
5.4.110.0450.02714.61
5.4.100.0380.03014.46
5.4.90.0460.02214.45
5.4.80.0460.02614.42
5.4.70.0420.02814.44
5.4.60.0130.03814.56
5.4.50.0070.03714.22
5.4.40.0160.03914.47
5.4.30.0120.02114.53
5.4.20.0260.03014.36
5.4.10.0060.00612.54
5.4.00.0100.00312.43

preferences:
39.93 ms | 401 KiB | 5 Q