3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = [ 'wind_1' => 'hk', 'wind_2' => 'pop', 'wind_25' => 'another' ]; echo substr(array_key_last($_POST), 5);

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.4.20.0100.00018.64
8.4.10.0030.00619.49
8.3.150.0050.01417.20
8.3.140.0040.01118.39
8.3.130.0000.00818.55
8.3.120.0110.00420.90
8.3.110.0040.00416.64
8.3.100.0030.00618.33
8.3.90.0050.00316.78
8.3.80.0060.00317.97
8.3.70.0120.00618.55
8.3.60.0070.01018.30
8.3.50.0080.00817.35
8.3.40.0090.00618.72
8.3.30.0150.00318.72
8.3.20.0090.00018.71
8.3.10.0080.00023.48
8.3.00.0060.00321.60
8.2.260.0090.00918.46
8.2.250.0070.00316.34
8.2.240.0070.01117.01
8.2.230.0040.01620.94
8.2.220.0000.00824.06
8.2.210.0070.00726.77
8.2.200.0060.00318.00
8.2.190.0100.01316.58
8.2.180.0150.00316.32
8.2.170.0090.00622.96
8.2.160.0130.00019.24
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.98
8.2.120.0040.00426.35
8.2.110.0040.00421.00
8.2.100.0060.00617.78
8.2.90.0000.00719.43
8.2.80.0000.00817.97
8.2.70.0050.00317.80
8.2.60.0070.00018.09
8.2.50.0050.00318.10
8.2.40.0040.00419.48
8.2.30.0030.00520.59
8.2.20.0070.00018.11
8.2.10.0040.00418.14
8.2.00.0040.00419.40
8.1.310.0080.00018.36
8.1.300.0090.00018.50
8.1.290.0040.00418.88
8.1.280.0040.01125.92
8.1.270.0040.00423.96
8.1.260.0160.00326.35
8.1.250.0000.00828.09
8.1.240.0100.00022.45
8.1.230.0090.00320.95
8.1.220.0030.00517.78
8.1.210.0040.00418.84
8.1.200.0060.00317.24
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0080.00018.61
8.1.160.0000.00718.87
8.1.150.0080.00018.79
8.1.140.0000.00717.48
8.1.130.0030.00320.27
8.1.120.0030.00317.43
8.1.110.0040.00417.47
8.1.100.0000.00717.36
8.1.90.0040.00417.32
8.1.80.0000.00717.37
8.1.70.0040.00417.48
8.1.60.0060.00317.48
8.1.50.0060.00317.39
8.1.40.0030.00617.53
8.1.30.0040.00417.55
8.1.20.0040.00417.59
8.1.10.0080.00017.52
8.1.00.0030.00517.40
8.0.300.0000.00819.98
8.0.290.0050.00316.63
8.0.280.0030.00318.30
8.0.270.0030.00316.80
8.0.260.0000.00822.03
8.0.250.0030.00616.94
8.0.240.0030.00316.98
8.0.230.0070.00016.86
8.0.220.0000.00716.89
8.0.210.0000.00716.94
8.0.200.0000.00716.91
8.0.190.0040.00416.80
8.0.180.0030.00616.83
8.0.170.0040.00416.93
8.0.160.0040.00416.84
8.0.150.0080.00016.77
8.0.140.0040.00416.80
8.0.130.0030.00313.27
8.0.120.0000.00816.89
8.0.110.0050.00216.83
8.0.100.0000.00716.87
8.0.90.0000.00716.68
8.0.80.0080.01016.80
8.0.70.0040.00416.84
8.0.60.0000.00816.88
8.0.50.0000.00716.68
8.0.30.0060.01216.97
8.0.20.0150.00317.45
8.0.10.0070.00016.85
8.0.00.0120.00616.77
7.4.330.0040.00415.55
7.4.320.0030.00316.39
7.4.300.0070.00016.50
7.4.290.0000.00716.46
7.4.280.0040.00416.57
7.4.270.0000.00816.41
7.4.260.0040.00416.46
7.4.250.0030.00316.49
7.4.240.0040.00416.57
7.4.230.0000.00716.56
7.4.220.0030.00616.61
7.4.210.0100.00716.49
7.4.200.0040.00416.32
7.4.160.0140.00316.37
7.4.140.0090.01117.86
7.4.130.0120.00616.68
7.4.120.0090.00916.46
7.4.110.0150.00916.63
7.4.100.0070.01016.37
7.4.90.0130.01016.54
7.4.80.0060.01219.39
7.4.70.0080.00816.36
7.4.60.0060.00916.46
7.4.50.0040.01216.18
7.4.40.0100.00716.48
7.4.10.0070.01015.00
7.4.00.0080.00914.81
7.3.330.0000.00512.96
7.3.320.0030.00213.11
7.3.310.0000.00715.94
7.3.300.0070.00016.04
7.3.290.0000.00616.17
7.3.280.0070.00716.11
7.3.260.0090.00916.18
7.3.240.0140.00616.29
7.3.230.0090.00616.31
7.3.210.0080.00816.18
7.3.200.0110.00516.18
7.3.190.0110.00616.22
7.3.180.0030.01316.16
7.3.170.0030.01316.18
7.3.160.0170.00416.12
7.3.130.0000.01714.43
7.3.120.0020.01014.60
7.3.110.0040.01114.54
7.3.100.0050.01014.82
7.3.90.0070.00714.77
7.3.80.0080.00714.87
7.3.70.0040.00814.62
7.3.60.0080.00714.54
7.3.50.0020.00814.62
7.3.40.0050.00814.59
7.3.30.0060.00814.70
7.3.20.0070.00716.45
7.3.10.0050.00916.63
7.3.00.0040.00816.50
7.2.330.0090.01616.52
7.2.320.0100.01016.40
7.2.310.0100.01016.56
7.2.300.0150.00716.32
7.2.290.0000.01616.48
7.2.260.0040.01114.59
7.2.250.0070.00814.81
7.2.240.0030.01214.91
7.2.230.0040.01114.73
7.2.220.0070.00614.88
7.2.210.0060.00815.05
7.2.200.0050.00814.79
7.2.190.0080.00715.04
7.2.180.0060.00814.78
7.2.170.0070.00714.87
7.2.160.0030.01015.07
7.2.150.0040.01016.84
7.2.140.0090.00316.88
7.2.130.0050.00716.74
7.2.120.0050.00916.74
7.2.110.0080.00916.72
7.2.100.0050.00716.87
7.2.90.0430.00816.16
7.2.80.0240.01116.20
7.2.70.0300.00616.25
7.2.60.0260.01116.28
7.2.50.0280.00616.29
7.2.40.0250.00716.12
7.2.30.0340.01016.17
7.2.20.0330.00916.11
7.2.10.0260.00716.13
7.2.00.0310.00816.04
7.1.330.0020.01215.74
7.1.320.0040.01115.66
7.1.310.0040.00715.69
7.1.300.0040.01115.60
7.1.290.0090.00415.54
7.1.280.0080.00515.59
7.1.270.0080.00515.58
7.1.260.0090.00415.68
7.1.250.0060.00515.42
7.1.240.0090.00315.42
7.1.230.0000.01315.70
7.1.220.0000.00915.77
7.1.210.0440.00714.81
7.1.200.0360.00614.64
7.1.190.0360.00714.72
7.1.180.0380.00414.83
7.1.170.0500.00314.61
7.1.160.0350.01314.56
7.1.150.0470.00914.55
7.1.140.0350.00614.78
7.1.130.0430.01114.67
7.1.120.0530.01314.84
7.1.110.0300.00914.69
7.1.100.0330.01014.72
7.1.90.0450.00314.64
7.1.80.0500.00514.62
7.1.70.0440.00914.65
7.1.60.0620.01023.64
7.1.50.0760.00823.68
7.1.40.0610.00823.42
7.1.30.0790.00823.74
7.1.20.0660.00923.61
7.1.10.0630.00814.44
7.1.00.0530.00714.58
7.0.330.0090.00015.06
7.0.320.0000.00915.34
7.0.310.0040.00415.26
7.0.300.0030.00715.48
7.0.290.0030.01015.27
7.0.280.0100.00315.20
7.0.270.0070.00715.50
7.0.260.0110.00415.28
7.0.250.0000.01015.25
7.0.240.0030.00715.32
7.0.230.0030.01215.09
7.0.220.0030.01015.34
7.0.210.0040.01115.45
7.0.200.0070.00415.47
7.0.190.0030.00615.15
7.0.180.0050.00515.37
7.0.170.0090.00615.47
7.0.160.0060.00615.06
7.0.150.0060.00615.45
7.0.140.0000.01115.38
7.0.130.0030.01015.24
7.0.120.0040.00815.16
7.0.110.0040.00715.20
7.0.100.0000.01215.43
7.0.90.0040.01115.49
7.0.80.0030.00615.05
7.0.70.0140.00015.09
7.0.60.0080.00415.38
7.0.50.0070.00715.48
7.0.40.0030.01013.49
7.0.30.0060.00313.36
7.0.20.0060.00913.46
7.0.10.0030.01113.38
7.0.00.0070.01113.49
5.6.400.0030.01014.63
5.6.390.0030.01214.38
5.6.380.0030.01013.91
5.6.370.0030.01013.82
5.6.360.0040.00714.18
5.6.350.0160.00014.11
5.6.340.0070.00313.96
5.6.330.0120.00314.52
5.6.320.0030.01314.46
5.6.310.0040.01114.38
5.6.300.0070.00314.54
5.6.290.0000.01314.04
5.6.280.0040.01114.37
5.6.270.0080.00814.05
5.6.260.0000.01214.33
5.6.250.0060.00914.54
5.6.240.0070.00714.32
5.6.230.0030.01014.34
5.6.220.0100.00014.24
5.6.210.0000.01414.41
5.6.200.0080.00814.06
5.6.190.0090.00614.36
5.6.180.0060.00614.25
5.6.170.0030.00714.05
5.6.160.0090.00914.36
5.6.150.0030.01014.24
5.6.140.0070.01014.10
5.6.130.0000.01314.13
5.6.120.0090.00614.46
5.6.110.0050.01214.16
5.6.100.0040.00414.52
5.6.90.0100.00314.03
5.6.80.0040.01114.00
5.6.70.0070.00314.17
5.6.60.0080.00614.20
5.6.50.0110.00314.19
5.6.40.0060.00914.18
5.6.30.0030.00814.50
5.6.20.0080.00414.10
5.6.10.0040.01114.07
5.6.00.0040.00414.46

preferences:
80.88 ms | 403 KiB | 5 Q