3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isDivisible_x_3($n) { if (strlen($n) == 3){ list($a,$b,$c) = str_split($n); if ($b == $a + 1 && $c == $b + 1){ $mess = "\n$n is divisible by three\n"; $mess .= "\nProof: \$n/3 == " . $n/3; return $mess; } } } $num = 234; echo isDivisible_x_3( $num );

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.00616.50
8.3.50.0090.00921.97
8.3.40.0150.00018.79
8.3.30.0110.00418.97
8.3.20.0100.00320.20
8.3.10.0030.00620.70
8.3.00.0050.00318.97
8.2.180.0190.00325.92
8.2.170.0090.00518.95
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00019.48
8.2.120.0080.00026.35
8.2.110.0070.00422.25
8.2.100.0100.00317.90
8.2.90.0000.00819.18
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00617.93
8.2.50.0060.00618.07
8.2.40.0000.00718.29
8.2.30.0000.00818.03
8.2.20.0080.00017.73
8.2.10.0000.00718.08
8.2.00.0020.00518.00
8.1.280.0070.00725.92
8.1.270.0090.00023.83
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0060.00320.76
8.1.230.0080.00317.77
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0050.00317.22
8.1.180.0080.00018.10
8.1.170.0070.00018.46
8.1.160.0040.00418.97
8.1.150.0040.00418.85
8.1.140.0000.00819.66
8.1.130.0000.00717.43
8.1.120.0030.00417.49
8.1.110.0040.00417.39
8.1.100.0040.00417.50
8.1.90.0080.00017.37
8.1.80.0030.00517.46
8.1.70.0000.00717.50
8.1.60.0030.00617.63
8.1.50.0030.00517.42
8.1.40.0080.00417.53
8.1.30.0080.00017.52
8.1.20.0040.00417.66
8.1.10.0050.00317.59
8.1.00.0040.00417.55
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0000.00718.31
8.0.270.0030.00517.27
8.0.260.0060.00316.93
8.0.250.0030.00317.04
8.0.240.0030.00317.01
8.0.230.0040.00417.01
8.0.220.0030.00316.93
8.0.210.0070.00016.96
8.0.200.0060.00316.93
8.0.190.0030.00316.92
8.0.180.0070.00316.98
8.0.170.0060.00316.93
8.0.160.0040.00416.81
8.0.150.0030.00716.93
8.0.140.0040.00416.88
8.0.130.0040.00413.44
8.0.120.0100.00016.86
8.0.110.0050.00316.99
8.0.100.0040.00416.91
8.0.90.0000.00716.79
8.0.80.0100.01016.98
8.0.70.0040.00416.81
8.0.60.0050.00216.98
8.0.50.0000.00716.99
8.0.30.0090.00717.13
8.0.20.0120.00717.40
8.0.10.0000.00717.14
8.0.00.0110.01116.94
7.4.330.0050.00015.08
7.4.320.0030.00316.58
7.4.300.0040.00316.46
7.4.290.0060.00016.45
7.4.280.0000.00716.49
7.4.270.0030.00316.52
7.4.260.0030.00516.48
7.4.250.0030.00616.55
7.4.240.0050.00316.61
7.4.230.0030.00316.66
7.4.220.0090.00916.62
7.4.210.0110.00416.61
7.4.200.0040.00416.42
7.4.160.0090.00616.58
7.4.150.0150.00317.40
7.4.140.0080.01017.86
7.4.130.0110.00816.60
7.4.120.0100.00716.55
7.4.110.0000.01616.67
7.4.100.0100.01316.73
7.4.90.0080.00816.52
7.4.80.0030.01619.39
7.4.70.0150.00316.53
7.4.60.0130.00316.50
7.4.50.0100.00716.55
7.4.40.0100.01216.25
7.4.30.0060.01016.58
7.4.00.0100.00715.08
7.3.330.0060.00013.18
7.3.320.0000.00513.21
7.3.310.0030.00316.39
7.3.300.0000.00716.31
7.3.290.0080.00916.31
7.3.280.0060.01116.38
7.3.270.0160.00317.40
7.3.260.0070.01116.32
7.3.250.0110.00716.41
7.3.240.0150.00616.51
7.3.230.0070.01316.57
7.3.210.0060.01216.42
7.3.200.0030.01416.68
7.3.190.0110.00616.66
7.3.180.0060.00916.55
7.3.170.0190.00316.59
7.3.160.0000.01716.55
7.2.330.0100.00716.73
7.2.320.0040.01216.65
7.2.310.0060.01216.50
7.2.300.0100.01316.77
7.2.290.0030.01316.47
7.2.60.0060.00916.80
7.2.00.0030.01419.20
7.1.200.0000.01315.60
7.1.100.0060.00618.29
7.1.70.0060.00617.30
7.1.60.0150.01119.27
7.1.00.0030.07722.37
7.0.200.0110.00316.94
7.0.60.0170.04019.92
7.0.50.0000.07717.86
7.0.40.0070.04319.96
7.0.30.0170.04720.11
7.0.20.0130.04720.07
7.0.10.0130.08020.21
7.0.00.0070.04020.32
5.6.280.0100.06721.12
5.6.210.0100.08020.51
5.6.200.0070.08318.13
5.6.190.0070.07020.64
5.6.180.0130.04720.33
5.6.170.0200.04720.47
5.6.160.0000.09320.51
5.6.150.0070.03718.18
5.6.140.0030.04018.18
5.6.130.0170.07018.18
5.6.120.0100.04321.00
5.6.110.0100.07021.03
5.6.100.0070.08721.05
5.6.90.0200.06021.00
5.6.80.0070.07320.48
5.5.350.0070.08320.43
5.5.340.0070.08018.05
5.5.330.0070.04020.29
5.5.320.0300.03320.32
5.5.310.0270.08020.35
5.5.300.0100.04718.00
5.5.290.0000.09017.98
5.5.280.0030.05320.68
5.5.270.0200.06020.89
5.5.260.0000.04720.68
5.5.250.0070.03720.46
5.5.240.0030.07720.16

preferences:
49.55 ms | 401 KiB | 5 Q