3v4l.org

run code in 300+ PHP versions simultaneously
<?php function IsOcta($string){ (int) $x=octdec("$string"); // Input must be a String and octdec returns NUMBER $y=decoct($x); // Must be a Number and decoct returns STRING if($string==$y){ return true; }else{ return false; } } $octal = 010; var_dump(IsOcta($octal));

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.0070.00716.88
8.3.50.0100.00316.43
8.3.40.0150.00018.75
8.3.30.0090.00618.85
8.3.20.0070.00021.77
8.3.10.0040.00423.64
8.3.00.0040.00419.60
8.2.180.0070.00716.63
8.2.170.0080.00822.96
8.2.160.0150.00019.39
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00820.52
8.2.120.0050.00226.35
8.2.110.0030.00619.27
8.2.100.0120.00018.03
8.2.90.0080.00017.63
8.2.80.0040.00418.16
8.2.70.0040.00417.80
8.2.60.0040.00418.16
8.2.50.0040.00418.10
8.2.40.0000.01022.33
8.2.30.0030.00619.32
8.2.20.0040.00418.04
8.2.10.0030.00618.04
8.2.00.0020.00518.23
8.1.280.0090.00625.92
8.1.270.0050.00320.73
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.01324.01
8.1.230.0070.00420.88
8.1.220.0080.00017.76
8.1.210.0030.00518.77
8.1.200.0090.00917.13
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0030.00618.71
8.1.160.0000.00718.96
8.1.150.0040.00421.96
8.1.140.0070.00019.49
8.1.130.0000.00720.71
8.1.120.0000.00817.49
8.1.110.0040.00417.48
8.1.100.0030.00517.52
8.1.90.0040.00417.43
8.1.80.0050.00217.51
8.1.70.0030.00517.47
8.1.60.0030.00617.61
8.1.50.0080.00017.55
8.1.40.0050.00317.49
8.1.30.0040.00417.55
8.1.20.0000.00817.67
8.1.10.0000.00817.54
8.1.00.0030.00717.50
8.0.300.0070.00019.89
8.0.290.0080.00016.75
8.0.280.0000.00718.50
8.0.270.0000.00717.23
8.0.260.0030.00316.93
8.0.250.0000.00716.93
8.0.240.0000.00717.06
8.0.230.0040.00417.03
8.0.220.0040.00416.94
8.0.210.0030.00316.91
8.0.200.0070.00016.99
8.0.190.0070.00417.02
8.0.180.0050.00217.04
8.0.170.0030.00316.92
8.0.160.0070.00016.88
8.0.150.0070.00016.99
8.0.140.0030.00316.82
8.0.130.0030.00313.43
8.0.120.0030.00516.80
8.0.110.0000.00817.00
8.0.100.0040.00416.84
8.0.90.0000.00716.84
8.0.80.0030.01116.89
8.0.70.0030.00317.01
8.0.60.0000.00816.96
8.0.50.0050.00217.02
8.0.30.0090.00817.00
8.0.20.0170.00217.40
8.0.10.0030.00517.04
8.0.00.0080.00816.79
7.4.330.0050.00015.55
7.4.320.0030.00316.50
7.4.300.0060.00016.64
7.4.290.0070.00016.43
7.4.280.0040.00416.58
7.4.270.0070.00016.62
7.4.260.0070.00016.60
7.4.250.0040.00416.38
7.4.240.0000.00716.57
7.4.230.0040.00416.69
7.4.220.0070.01116.47
7.4.210.0030.01016.58
7.4.200.0000.00716.63
7.4.160.0100.00516.40
7.4.150.0210.00417.40
7.4.140.0110.00817.86
7.4.130.0130.00616.56
7.4.120.0080.01216.58
7.4.110.0040.01216.52
7.4.100.0100.00716.54
7.4.90.0100.00616.62
7.4.80.0160.00619.39
7.4.70.0070.01016.55
7.4.60.0110.01116.67
7.4.50.0090.00316.22
7.4.40.0090.00616.47
7.4.30.0060.00916.63
7.4.00.0040.01114.85
7.3.330.0000.00513.12
7.3.320.0000.00513.29
7.3.310.0000.00716.21
7.3.300.0000.00716.33
7.3.290.0110.00516.29
7.3.280.0100.00816.30
7.3.270.0130.00617.40
7.3.260.0080.01016.59
7.3.250.0080.01016.50
7.3.240.0100.00916.41
7.3.230.0060.01516.39
7.3.210.0090.00616.38
7.3.200.0060.00916.40
7.3.190.0120.00916.39
7.3.180.0130.00616.56
7.3.170.0070.00816.35
7.3.160.0070.01016.36
7.2.330.0070.01016.42
7.2.320.0120.00316.71
7.2.310.0100.00716.54
7.2.300.0110.01116.79
7.2.290.0130.00416.67
7.2.60.0040.01016.70
7.2.50.0070.00716.97
7.1.200.0060.00615.86
7.1.70.0000.00717.24
7.1.60.1700.02333.23
7.1.50.1370.01032.96
7.1.40.1770.01332.61
7.1.30.1100.02032.53
7.1.20.1270.01332.58
7.1.10.1030.01314.59
7.1.00.1370.01014.67
7.0.200.3100.01015.11
7.0.190.2000.01014.71
7.0.180.1170.01014.29
7.0.170.2300.00314.55
7.0.160.2170.01014.34
7.0.150.1530.02014.16
7.0.140.1170.01314.42
7.0.130.1400.01714.52
7.0.120.1100.01314.71
7.0.110.1030.00314.54
7.0.100.1630.01314.35
7.0.90.1000.01014.42
7.0.80.1330.01314.39
7.0.70.1370.00714.40
7.0.60.1130.00314.36
7.0.50.2270.01014.45
7.0.40.1100.01014.89
7.0.30.1900.00714.68
7.0.20.1130.01314.61
7.0.10.1200.00714.66
7.0.00.1670.00714.61

preferences:
64.01 ms | 401 KiB | 5 Q