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(iconv($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.0120.00618.68
8.3.50.0030.01016.27
8.3.40.0070.00719.09
8.3.30.0070.00719.06
8.3.20.0040.00420.04
8.3.10.0040.00423.56
8.3.00.0050.00322.57
8.2.180.0120.00616.63
8.2.170.0140.00022.96
8.2.160.0150.00020.33
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00617.63
8.2.110.0000.01120.56
8.2.100.0080.00317.75
8.2.90.0080.00019.21
8.2.80.0080.00017.97
8.2.70.0030.00617.88
8.2.60.0050.00317.93
8.2.50.0030.01018.07
8.2.40.0040.00421.11
8.2.30.0050.00319.84
8.2.20.0000.00917.82
8.2.10.0050.00217.95
8.2.00.0070.00018.12
8.1.280.0150.00025.92
8.1.270.0040.00420.43
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.75
8.1.230.0040.00817.42
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0050.00517.60
8.1.190.0030.00617.36
8.1.180.0040.00418.10
8.1.170.0040.00418.77
8.1.160.0080.00023.78
8.1.150.0000.00818.91
8.1.140.0000.00817.50
8.1.130.0030.00517.66
8.1.120.0000.00717.61
8.1.110.0000.00817.59
8.1.100.0000.00717.65
8.1.90.0040.00417.55
8.1.80.0000.00717.61
8.1.70.0040.00417.57
8.1.60.0030.00517.73
8.1.50.0000.01117.61
8.1.40.0040.00417.69
8.1.30.0000.00817.77
8.1.20.0000.00817.80
8.1.10.0000.00917.59
8.1.00.0030.00517.60
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0070.00018.33
8.0.270.0000.00717.28
8.0.260.0030.00317.30
8.0.250.0070.00017.01
8.0.240.0080.00017.05
8.0.230.0030.00317.04
8.0.220.0070.00017.06
8.0.210.0000.00717.09
8.0.200.0000.00917.17
8.0.190.0040.00417.15
8.0.180.0030.00617.09
8.0.170.0030.00617.13
8.0.160.0040.00417.12
8.0.150.0000.00817.04
8.0.140.0070.00017.04
8.0.130.0000.00613.60
8.0.120.0090.00017.01
8.0.110.0050.00317.07
8.0.100.0050.00317.14
8.0.90.0040.00417.16
8.0.80.0150.00317.15
8.0.70.0050.00316.94
8.0.60.0000.00716.89
8.0.50.0000.00816.90
8.0.30.0100.00817.51
8.0.20.0100.01017.40
8.0.10.0050.00217.06
8.0.00.0100.01217.10
7.4.330.0000.00715.08
7.4.320.0030.00316.69
7.4.300.0000.00616.78
7.4.290.0030.00316.70
7.4.280.0070.00016.65
7.4.270.0000.00716.80
7.4.260.0030.00316.82
7.4.250.0060.00316.76
7.4.240.0020.00516.70
7.4.230.0000.00716.62
7.4.220.0040.01516.88
7.4.210.0040.01116.72
7.4.200.0070.00016.55
7.4.160.0080.01116.65
7.4.150.0070.01117.40
7.4.140.0060.01517.86
7.4.130.0060.01216.73
7.4.120.0060.01316.63
7.4.110.0060.01016.71
7.4.100.0090.01416.90
7.4.90.0070.01016.62
7.4.80.0150.00619.39
7.4.70.0120.00716.66
7.4.60.0100.01016.54
7.4.50.0090.00916.60
7.4.40.0090.00916.68
7.4.30.0140.00716.57
7.4.20.0150.00716.40
7.4.10.0120.00816.20
7.4.00.0110.00816.07
7.3.330.0030.00313.36
7.3.320.0050.00013.32
7.3.310.0020.00516.67
7.3.300.0030.00316.59
7.3.290.0030.00316.32
7.3.280.0140.00416.53
7.3.270.0070.01017.40
7.3.260.0060.01016.70
7.3.250.0090.00816.69
7.3.240.0060.01216.58
7.3.230.0120.00616.74
7.3.210.0070.01016.72
7.3.200.0070.01516.85
7.3.190.0050.01516.66
7.3.180.0080.01016.57
7.3.170.0120.00916.66
7.3.160.0140.00316.64
7.3.150.0100.01016.42
7.3.140.0130.00816.52
7.3.130.0100.01015.98
7.3.120.0130.00816.03
7.3.110.0110.01016.03
7.3.100.0110.00616.01
7.3.90.0090.00715.98
7.3.80.0080.00816.07
7.3.70.0080.01116.08
7.3.60.0080.00816.05
7.3.50.0100.00616.07
7.3.40.0090.00815.92
7.3.30.0090.00715.94
7.3.20.0050.01516.54
7.3.10.0070.01116.52
7.3.00.0070.00716.63
7.2.330.0000.01716.70
7.2.320.0070.01116.68
7.2.310.0110.01016.71
7.2.300.0140.00816.65
7.2.290.0070.01016.70
7.2.280.0090.01216.66
7.2.270.0090.01016.76
7.2.260.0080.01216.15
7.2.250.0120.00916.16
7.2.240.0110.00916.08
7.2.230.0100.00916.20
7.2.220.0080.01016.29
7.2.210.0050.01116.24
7.2.200.0080.00916.16
7.2.190.0090.00816.12
7.2.180.0110.00816.21
7.2.170.0040.01416.23
7.2.160.0110.00716.19
7.2.150.0120.00716.90
7.2.140.0060.01016.65
7.2.130.0090.00716.95
7.2.120.0100.00716.82
7.2.110.0080.00816.79
7.2.100.0090.00816.80
7.2.90.0070.00816.92
7.2.80.0100.00716.84
7.2.70.0080.00916.78
7.2.60.0050.01116.87
7.2.50.0090.00816.90
7.2.40.0070.01016.89
7.2.30.0120.00416.92
7.2.20.0080.00916.92
7.2.10.0050.01116.86
7.2.00.0070.00917.37
7.1.330.0120.01115.87
7.1.320.0150.01015.81
7.1.310.0140.00615.79
7.1.300.0140.00515.83
7.1.290.0130.00815.91
7.1.280.0090.01015.80
7.1.270.0120.00815.87
7.1.260.0160.00815.81
7.1.250.0080.01215.83
7.1.240.0090.01015.82
7.1.230.0080.00915.82
7.1.220.0120.00715.86
7.1.210.0120.00615.87
7.1.200.0110.00715.89
7.1.190.0100.00915.89
7.1.180.0130.00615.72
7.1.170.0110.00815.73
7.1.160.0080.01015.85
7.1.150.0100.01015.74
7.1.140.0110.00915.76
7.1.130.0270.01215.85
7.1.120.0140.00615.86
7.1.110.0100.01015.90
7.1.100.0110.00816.54
7.1.90.0160.00515.88
7.1.80.0130.00615.72
7.1.70.0090.00716.18
7.1.60.0110.00916.94
7.1.50.0140.00916.17
7.1.40.0080.01115.92
7.1.30.0300.01115.84
7.1.20.0090.00915.84
7.1.10.0100.01115.90
7.1.00.0090.02617.42
7.0.330.0070.01115.44
7.0.320.0170.00715.36
7.0.310.0100.01015.40
7.0.300.0090.00715.32
7.0.290.0090.00915.27
7.0.280.0090.01015.47
7.0.270.0120.00615.42
7.0.260.0090.00815.40
7.0.250.0090.01015.25
7.0.240.0060.01315.45
7.0.230.0090.00815.55
7.0.220.0130.00515.54
7.0.210.0090.00715.42
7.0.200.0130.00715.78
7.0.190.0060.01215.44
7.0.180.0090.00915.49
7.0.170.0180.00715.47
7.0.160.0130.00715.59
7.0.150.0100.01115.40
7.0.140.0140.00515.50
7.0.130.0090.00815.48
7.0.120.0090.00815.48
7.0.110.0090.00615.45
7.0.100.0040.01015.45
7.0.90.0080.00715.49
7.0.80.0070.00715.55
7.0.70.0060.01015.51
7.0.60.0090.02616.60
7.0.50.0080.02016.08
7.0.40.0110.02416.11
7.0.30.0160.02016.19
7.0.20.0330.02216.18
7.0.10.0160.02616.17
7.0.00.0100.02716.22
5.6.400.0100.00815.48
5.6.390.0110.00915.40
5.6.380.0130.00715.36
5.6.370.0070.01415.40
5.6.360.0090.01115.62
5.6.350.0090.01015.34
5.6.340.0110.01015.32
5.6.330.0120.00915.56
5.6.320.0110.00915.52
5.6.310.0110.01015.37
5.6.300.0080.01115.31
5.6.290.0090.01015.53
5.6.280.0110.02216.71
5.6.270.0130.00615.50
5.6.260.0090.00715.41
5.6.250.0100.00615.45
5.6.240.0060.01115.47
5.6.230.0080.01015.56
5.6.220.0090.00815.40
5.6.210.0070.02616.69
5.6.200.0100.02416.03
5.6.190.0070.01916.69
5.6.180.0130.02316.72
5.6.170.0180.02116.66
5.6.160.0140.02416.56
5.6.150.0120.01516.14
5.6.140.0130.01316.12
5.6.130.0090.01816.08
5.6.120.0100.02016.80
5.6.110.0060.02616.80
5.6.100.0050.03116.81
5.6.90.0100.02516.88
5.6.80.0070.02916.54
5.6.70.1200.01916.67
5.6.60.0060.01015.41
5.6.50.0070.01015.43
5.6.40.0090.00815.32
5.6.30.0080.00815.29
5.6.20.0090.00815.37
5.6.10.0080.00915.37
5.6.00.0040.01215.42
5.5.380.0080.00815.46
5.5.370.0080.01115.25
5.5.360.0070.01215.42
5.5.350.0100.01616.69
5.5.340.0100.02516.04
5.5.330.0070.02016.63
5.5.320.0090.02916.66
5.5.310.0170.02416.59
5.5.300.0110.01516.07
5.5.290.0090.02916.02
5.5.280.0070.02316.77
5.5.270.0070.03216.78
5.5.260.0070.01616.79
5.5.250.0030.02416.70
5.5.240.0140.02016.61
5.5.230.0040.01315.41
5.5.220.0040.01215.45
5.5.210.0100.00815.29
5.5.200.0040.01115.31
5.5.190.0040.01315.28
5.5.180.0080.00915.35
5.5.170.0090.00815.40
5.5.160.0080.01015.33
5.5.150.0070.00915.20
5.5.140.0100.00815.43
5.5.130.0100.01015.34
5.5.120.0080.00715.31
5.5.110.0050.01215.37
5.5.100.0090.00715.39
5.5.90.0080.00815.36
5.5.80.0130.00815.37
5.5.70.0090.01215.27
5.5.60.0110.00915.32
5.5.50.0120.00715.21
5.5.40.0090.01015.35
5.5.30.0080.01115.24
5.5.20.0060.01315.25
5.5.10.0080.00815.43
5.5.00.0060.00915.32
5.4.450.0290.01614.50
5.4.440.0290.01714.54
5.4.430.0280.01614.53
5.4.420.0300.01814.44
5.4.410.0270.01814.44
5.4.400.0320.02114.37
5.4.390.0240.01914.27
5.4.380.0290.02014.36
5.4.370.0250.01814.39
5.4.360.0270.02014.31
5.4.350.0230.02314.32
5.4.340.0290.02114.45
5.4.330.0050.00912.75
5.4.320.0210.02214.40
5.4.310.0260.01814.37
5.4.300.0270.01614.41
5.4.290.0270.02014.38
5.4.280.0260.02314.26
5.4.270.0280.01714.46
5.4.260.0270.01714.47
5.4.250.0310.01514.37
5.4.240.0290.02314.25
5.4.230.0310.01914.47
5.4.220.0260.02014.27
5.4.210.0250.01914.39
5.4.200.0210.01813.81
5.4.190.0060.02114.38
5.4.180.0060.01914.34
5.4.170.0080.01814.45
5.4.160.0210.01714.32
5.4.150.0250.01814.33
5.4.140.0270.01713.66
5.4.130.0250.01713.69
5.4.120.0230.01913.71
5.4.110.0240.01713.74
5.4.100.0260.01413.79
5.4.90.0300.01813.65
5.4.80.0240.01813.65
5.4.70.0270.01613.62
5.4.60.0110.02113.67
5.4.50.0040.02313.65
5.4.40.0120.01913.73
5.4.30.0100.01413.70
5.4.20.0080.02313.74
5.4.10.0080.00412.79
5.4.00.0040.00912.84

preferences:
55.3 ms | 400 KiB | 5 Q