3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = [ 'wind_1' => 'hk', 'hamburger_66' => 'foo', 'wind_2' => 'pop', 'wind_25' => 'another', 'wind_13' => 'bar', 'pass_wind_99' => 'stank', ]; $n = null; foreach ($_POST as $k => $v) { if (sscanf($k, 'wind_%d', $windInt) && $windInt > $n) { $n = $windInt; } } var_export($n);

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.5.00.0130.00820.02
8.4.150.0020.00014.05
8.4.140.0180.00317.57
8.4.130.0150.00517.74
8.4.120.0100.00220.37
8.4.110.0060.00322.53
8.4.100.0100.01017.89
8.4.90.0120.00818.62
8.4.80.0120.00819.52
8.4.70.0090.01017.93
8.4.60.0120.00920.56
8.4.50.0060.00718.64
8.4.40.0100.01018.43
8.4.30.0100.01020.31
8.4.20.0070.01317.74
8.4.10.0080.01219.59
8.3.280.0100.01118.56
8.3.270.0120.00716.80
8.3.260.0120.00816.41
8.3.250.0130.00618.85
8.3.240.0120.00618.95
8.3.230.0140.00516.59
8.3.220.0140.00519.00
8.3.210.0100.00518.46
8.3.200.0050.00416.81
8.3.190.0070.00316.99
8.3.180.0120.00716.60
8.3.170.0140.00419.04
8.3.160.0080.00816.52
8.3.150.0090.00916.98
8.3.140.0100.00016.63
8.3.130.0080.00416.51
8.3.120.0100.01018.93
8.3.110.0150.00020.94
8.3.100.0060.00318.43
8.3.90.0070.00020.18
8.3.80.0030.00718.43
8.3.70.0120.00918.43
8.3.60.0070.01116.50
8.3.50.0180.00316.47
8.3.40.0090.00922.08
8.3.30.0030.01021.90
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.290.0080.01020.68
8.2.280.0090.00218.37
8.2.270.0110.00717.02
8.2.260.0140.00416.59
8.2.250.0060.00316.50
8.2.240.0130.00616.44
8.2.230.0090.00022.58
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0060.00318.41
8.2.190.0100.00616.62
8.2.180.0110.00416.88
8.2.170.0040.01118.81
8.2.160.0030.01022.96
8.2.150.0060.00625.66
8.2.140.0090.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00819.66
8.2.110.0180.00422.29
8.2.100.0140.00721.13
8.2.90.0220.00918.96
8.2.80.0210.00918.70
8.2.70.0170.01018.59
8.2.60.0150.00718.61
8.2.50.0270.00718.53
8.2.40.0110.00318.65
8.2.30.0040.00818.78
8.2.20.0180.00918.66
8.2.10.0110.00318.98
8.2.00.0180.00919.23
8.1.330.0120.00621.93
8.1.320.0070.00616.14
8.1.310.0070.00315.80
8.1.300.0090.00915.96
8.1.290.0140.00018.88
8.1.280.0070.01425.92
8.1.270.0070.00023.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0160.00418.35
8.1.230.0090.00918.60
8.1.220.0190.00018.62
8.1.210.0120.00319.88
8.1.200.0130.00018.41
8.1.190.0130.00018.30
8.1.180.0120.00318.30
8.1.170.0110.00318.48
8.1.160.0080.00418.72
8.1.150.0120.00020.29
8.1.140.0080.00518.50
8.1.130.0130.00018.44
8.1.120.0070.00718.53
8.1.110.0130.00018.54
8.1.100.0110.00418.59
8.1.90.0100.00318.61
8.1.80.0130.00018.55
8.1.70.0060.00618.56
8.1.60.0100.00718.72
8.1.50.0120.00418.50
8.1.40.0060.00618.75
8.1.30.0090.00318.98
8.1.20.0150.00018.73
8.1.10.0080.00418.87
8.1.00.0080.00418.41
8.0.300.0060.00917.80
8.0.290.0150.00017.90
8.0.280.0080.00417.82
8.0.270.0100.00317.79
8.0.260.0150.00017.95
8.0.250.0090.00617.71
8.0.240.0140.00017.48
8.0.230.0120.00018.22
8.0.220.0090.00617.87
8.0.210.0120.00317.84
8.0.200.0120.00417.67
8.0.190.0130.00617.73
8.0.180.0070.00717.71
8.0.170.0070.00317.93
8.0.160.0090.00617.73
8.0.150.0090.00617.88
8.0.140.0160.00017.63
8.0.130.0120.00018.23
8.0.120.0090.00617.80
8.0.110.0140.00018.00
8.0.100.0150.00017.69
8.0.90.0120.00317.83
8.0.80.0090.00617.88
8.0.70.0090.00517.70
8.0.60.0250.00017.75
8.0.50.0120.00317.83
8.0.30.0220.00417.95
8.0.20.0120.00318.01
8.0.10.0160.00018.14

preferences:
126.09 ms | 403 KiB | 5 Q