3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=123; $s="$a"; if(is_numeric($s)==1) die("numerico"); echo "strlen=".strlen($s); for($i=0;$i<strlen($s);$i++) if(is_numeric($s[$i])) echo $s[$i]." in posizione $i"; ?>

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.0180.00016.63
8.3.50.0070.00716.24
8.3.40.0040.01518.76
8.3.30.0120.00618.20
8.3.20.0040.00418.56
8.3.10.0070.00021.64
8.3.00.0040.00419.25
8.2.180.0110.00418.13
8.2.170.0120.00922.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00219.24
8.2.120.0070.00026.35
8.2.110.0110.00022.05
8.2.100.0040.00717.84
8.2.90.0030.00618.03
8.2.80.0030.00519.14
8.2.70.0030.00618.04
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0080.00020.37
8.2.30.0060.00319.30
8.2.20.0070.00018.05
8.2.10.0030.00617.96
8.2.00.0050.00318.20
8.1.280.0060.01325.92
8.1.270.0070.00022.24
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0040.00422.23
8.1.230.0080.00421.04
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0080.00017.35
8.1.190.0000.00917.35
8.1.180.0080.00018.10
8.1.170.0000.00818.50
8.1.160.0040.00418.92
8.1.150.0040.00418.88
8.1.140.0040.00419.11
8.1.130.0030.00619.03
8.1.120.0000.00817.34
8.1.110.0030.00317.38
8.1.100.0040.00417.33
8.1.90.0040.00417.46
8.1.80.0080.00017.33
8.1.70.0000.00717.43
8.1.60.0030.00517.57
8.1.50.0040.00417.50
8.1.40.0050.00317.37
8.1.30.0040.00417.57
8.1.20.0000.00717.63
8.1.10.0040.00417.37
8.1.00.0030.00617.30
8.0.300.0080.00020.13
8.0.290.0000.00716.88
8.0.280.0070.00018.31
8.0.270.0000.00717.25
8.0.260.0000.00617.12
8.0.250.0040.00416.97
8.0.240.0000.00717.02
8.0.230.0000.00716.96
8.0.220.0050.00316.88
8.0.210.0000.00816.91
8.0.200.0000.00616.96
8.0.190.0080.00016.93
8.0.180.0050.00216.94
8.0.170.0040.00416.84
8.0.160.0000.00716.92
8.0.150.0070.00016.77
8.0.140.0040.00416.91
8.0.130.0000.00513.41
8.0.120.0040.00416.79
8.0.110.0080.00016.85
8.0.100.0040.00416.85
8.0.90.0070.00016.96
8.0.80.0060.01016.99
8.0.70.0070.00016.79
8.0.60.0040.00417.06
8.0.50.0040.00416.95
8.0.30.0060.01317.25
8.0.20.0130.00517.40
8.0.10.0070.00017.10
8.0.00.0120.00916.76
7.4.330.0040.00015.55
7.4.320.0000.00616.49
7.4.300.0050.00216.48
7.4.290.0000.00616.61
7.4.280.0050.00316.52
7.4.270.0000.00716.61
7.4.260.0030.00316.46
7.4.250.0030.00316.57
7.4.240.0000.00716.57
7.4.230.0030.00316.34
7.4.220.0070.00016.47
7.4.210.0050.01216.61
7.4.200.0030.00316.48
7.4.160.0070.01016.47
7.4.150.0160.00617.40
7.4.140.0120.00917.86
7.4.130.0160.00916.37
7.4.120.0110.00816.52
7.4.110.0000.01616.45
7.4.100.0060.01216.53
7.4.90.0170.00716.79
7.4.80.0130.00719.39
7.4.70.0090.00916.42
7.4.60.0070.01016.33
7.4.50.0060.00916.39
7.4.40.0060.01116.53
7.4.00.0030.01314.48
7.3.330.0050.00013.06
7.3.320.0000.00513.16
7.3.310.0000.00716.25
7.3.300.0070.00016.23
7.3.290.0000.00716.30
7.3.280.0090.00616.31
7.3.270.0190.00017.40
7.3.260.0130.00416.52
7.3.250.0120.00616.41
7.3.240.0120.00716.37
7.3.230.0070.01016.31
7.3.210.0120.00416.39
7.3.200.0030.01416.47
7.3.190.0030.01216.43
7.3.180.0080.00816.23
7.3.170.0080.01516.41
7.3.160.0120.00816.43
7.2.330.0070.01016.51
7.2.320.0110.00516.70
7.2.310.0120.01216.57
7.2.300.0090.00916.57
7.2.290.0140.00316.30
7.2.60.0040.01116.75
7.2.10.0130.00719.75
7.2.00.0070.01419.60
7.1.200.0080.00315.40
7.1.130.0080.00818.81
7.1.120.0070.00718.62
7.1.110.0030.01618.20
7.1.100.0100.01018.16
7.1.90.0100.00618.15
7.1.80.0060.00918.28
7.1.70.0000.01717.07
7.1.60.0110.02235.14
7.1.50.0170.01734.50
7.1.40.0170.01734.59
7.1.30.0160.02034.42
7.1.20.0220.01334.50
7.1.10.0040.01116.67
7.1.00.0030.01516.60

preferences:
54.08 ms | 401 KiB | 5 Q