3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = [ 'wind_1' => 'hk', 'hamburger_66' => 'foo', 'wind_2' => 'pop', 'wind_25' => 'another' ]; foreach ($_POST as $k => $v) { if (strpos($k, 'wind_') === 0) { $key = $k; } } echo filter_var($key, FILTER_SANITIZE_NUMBER_INT);

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.130.0110.00718.33
8.3.120.0060.00320.75
8.3.110.0030.00616.62
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0030.00617.97
8.3.70.0120.00318.41
8.3.60.0110.00716.25
8.3.50.0100.00718.08
8.3.40.0070.01318.68
8.3.30.0110.00418.59
8.3.20.0030.00719.16
8.3.10.0040.00720.91
8.3.00.0040.00423.56
8.2.250.0050.00516.53
8.2.240.0060.00317.21
8.2.230.0130.00620.94
8.2.220.0030.00737.54
8.2.210.0040.00426.77
8.2.200.0060.00316.38
8.2.190.0040.01116.58
8.2.180.0150.00416.50
8.2.170.0080.00818.97
8.2.160.0110.00422.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.05
8.2.120.0040.00426.35
8.2.110.0100.01020.52
8.2.100.0080.00317.70
8.2.90.0030.00519.64
8.2.80.0000.00817.97
8.2.70.0080.00017.93
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0040.00419.11
8.2.30.0070.00019.28
8.2.20.0000.00718.14
8.2.10.0000.00718.13
8.2.00.0050.00219.45
8.1.300.0000.01615.97
8.1.290.0060.00330.84
8.1.280.0140.00425.92
8.1.270.0040.00423.92
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0040.00422.45
8.1.230.0040.00722.88
8.1.220.0040.00417.76
8.1.210.0000.00818.89
8.1.200.0080.00017.35
8.1.190.0080.00417.13
8.1.180.0040.00418.10
8.1.170.0060.00318.50
8.1.160.0000.00718.85
8.1.150.0070.00018.99
8.1.140.0050.00217.71
8.1.130.0000.00717.45
8.1.120.0070.00017.45
8.1.110.0040.00417.39
8.1.100.0070.00017.45
8.1.90.0040.00317.47
8.1.80.0000.00817.45
8.1.70.0030.00917.48
8.1.60.0040.00717.47
8.1.50.0040.00417.40
8.1.40.0040.00417.53
8.1.30.0000.00717.61
8.1.20.0000.00717.48
8.1.10.0060.00317.54
8.1.00.0050.00517.40
8.0.300.0040.00419.98
8.0.290.0080.00016.58
8.0.280.0040.00418.34
8.0.270.0030.00417.25
8.0.260.0050.00216.88
8.0.250.0030.00316.92
8.0.240.0000.00716.95
8.0.230.0070.00016.84
8.0.220.0030.00616.75
8.0.210.0070.00016.75
8.0.200.0030.00716.96
8.0.190.0080.00016.86
8.0.180.0000.00816.89
8.0.170.0000.00816.95
8.0.160.0040.00416.87
8.0.150.0040.00416.82
8.0.140.0080.00016.83
8.0.130.0000.00613.35
8.0.120.0020.00516.84
8.0.110.0080.00016.89
8.0.100.0000.00816.91
8.0.90.0070.00016.76
8.0.80.0090.01216.86
8.0.70.0050.00316.92
8.0.60.0050.00216.78
8.0.50.0070.00016.77
8.0.30.0090.01017.09
8.0.20.0120.00617.40
8.0.10.0040.00417.00
8.0.00.0110.00816.85
7.4.330.0050.00015.55
7.4.320.0070.00016.64
7.4.300.0030.00316.54
7.4.290.0000.00616.41
7.4.280.0070.00016.50
7.4.270.0030.00316.60
7.4.260.0030.00316.50
7.4.250.0000.00816.45
7.4.240.0000.00816.53
7.4.230.0000.00716.38
7.4.220.0040.00416.70
7.4.210.0050.01316.52
7.4.200.0030.00316.53
7.4.160.0090.00716.52
7.4.140.0080.00917.86
7.4.130.0130.00516.55
7.4.120.0090.00816.52
7.4.110.0080.01116.46
7.4.100.0070.01616.48
7.4.90.0130.00616.43
7.4.80.0000.01619.39
7.4.70.0060.01016.50
7.4.60.0100.01016.34
7.4.50.0090.00616.54
7.4.40.0000.01616.55
7.4.00.0000.01315.11
7.3.330.0050.00013.01
7.3.320.0060.00013.00
7.3.310.0050.00316.16
7.3.300.0000.00716.10
7.3.290.0000.00716.27
7.3.280.0140.00316.33
7.3.260.0140.00516.42
7.3.240.0100.00716.37
7.3.230.0070.01116.36
7.3.210.0060.01016.30
7.3.200.0070.01016.24
7.3.190.0060.01216.29
7.3.180.0110.00516.34
7.3.170.0100.00616.52
7.3.160.0100.00616.37
7.2.330.0090.01516.54
7.2.320.0150.01016.78
7.2.310.0040.01916.81
7.2.300.0030.01816.67
7.2.290.0130.00716.73
7.2.70.0590.01315.00
7.2.60.0680.00615.11
7.2.50.0560.00915.09
7.2.40.0550.00614.93
7.2.30.0590.00914.89
7.2.20.0600.00615.13
7.2.10.0660.00714.98
7.2.00.0580.00015.26
7.1.200.0130.00715.84
7.1.170.0450.01613.86
7.1.160.0570.01013.62
7.1.150.0580.00713.60
7.1.140.0460.01713.57
7.1.130.0560.00413.42
7.1.120.0560.00413.50
7.1.110.0770.00713.89
7.1.100.0590.00313.57
7.1.90.0730.00913.82
7.1.80.0500.01313.79
7.1.70.0570.01313.74
7.1.60.0780.00931.62
7.1.50.1180.02031.77
7.1.40.0800.01232.01
7.1.30.0830.01731.78
7.1.20.1320.01031.78
7.1.10.0770.00713.69
7.1.00.1040.00314.04

preferences:
43.33 ms | 403 KiB | 5 Q