3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options['key'][] = 'testkey1'; $options['value'][] = 'testvalue1'; $options['key'][] = 'testkey2'; $options['value'][] = 'testvalue2'; $options['key'][] = 'testkey3'; $options['value'][] = 'testvalue3'; print_r($options); $processed = array(); for ($i = 0; $i < count($options['key']); $i++) { $processed[$i] = array( 'key' => isset($options['key'][$i]) ? $options['key'][$i] : null, 'value' => isset($options['value'][$i]) ? $options['value'][$i] : null, ); } print_r($processed);

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.0100.01018.56
8.3.50.0100.00621.33
8.3.40.0140.00018.85
8.3.30.0110.00419.14
8.3.20.0000.00920.17
8.3.10.0080.00022.10
8.3.00.0040.00422.41
8.2.180.0180.00416.75
8.2.170.0040.01122.96
8.2.160.0100.00318.84
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.01326.16
8.2.120.0040.00419.36
8.2.110.0060.00320.22
8.2.100.0080.00319.32
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0030.00617.49
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0030.00618.16
8.2.30.0020.00518.10
8.2.20.0070.00017.59
8.2.10.0060.00317.64
8.2.00.0070.00017.73
8.1.280.0070.00725.92
8.1.270.0060.00322.16
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0040.00423.81
8.1.230.0040.00819.01
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.47
8.1.190.0040.00417.64
8.1.180.0000.00818.73
8.1.170.0040.00418.46
8.1.160.0040.00422.13
8.1.150.0000.00718.50
8.1.140.0000.00717.36
8.1.130.0030.00317.69
8.1.120.0070.00017.42
8.1.110.0050.00517.33
8.1.100.0030.00317.41
8.1.90.0030.00617.51
8.1.80.0040.00417.36
8.1.70.0030.00317.41
8.1.60.0060.00317.50
8.1.50.0060.00317.42
8.1.40.0040.00417.50
8.1.30.0030.00617.60
8.1.20.0060.00317.48
8.1.10.0040.00417.39
8.1.00.0000.00717.42
8.0.300.0040.00418.77
8.0.290.0000.00817.04
8.0.280.0000.00718.36
8.0.270.0040.00417.19
8.0.260.0030.00318.25
8.0.250.0000.00716.90
8.0.240.0000.00716.89
8.0.230.0030.00316.86
8.0.220.0040.00316.75
8.0.210.0020.00516.80
8.0.200.0070.00016.80
8.0.190.0040.00416.95
8.0.180.0000.00716.90
8.0.170.0080.00016.83
8.0.160.0000.00716.86
8.0.150.0030.00316.81
8.0.140.0000.00716.90
8.0.130.0000.00613.32
8.0.120.0040.00416.84
8.0.110.0070.00016.87
8.0.100.0000.00816.87
8.0.90.0040.00416.75
8.0.80.0000.01616.80
8.0.70.0050.00316.82
8.0.60.0000.00716.86
8.0.50.0040.00416.93
8.0.30.0130.00516.84
8.0.20.0110.00817.40
8.0.10.0000.00716.91
8.0.00.0080.01316.74
7.4.330.0050.00015.00
7.4.320.0000.00616.60
7.4.300.0000.00716.47
7.4.290.0000.00716.51
7.4.280.0030.00516.59
7.4.270.0080.00016.40
7.4.260.0030.00316.38
7.4.250.0070.00016.44
7.4.240.0000.00716.60
7.4.230.0040.00416.43
7.4.220.0130.01216.66
7.4.210.0050.00916.57
7.4.200.0030.00316.40
7.4.190.0000.00716.63
7.4.160.0100.00616.46
7.4.150.0140.00317.40
7.4.140.0090.00917.86
7.4.130.0070.01416.43
7.4.120.0090.01016.54
7.4.110.0090.00916.54
7.4.100.0000.02016.48
7.4.90.0100.01016.50
7.4.80.0070.01019.39
7.4.70.0070.01016.31
7.4.60.0100.00716.73
7.4.50.0030.00616.41
7.4.40.0070.01122.77
7.4.30.0070.01016.46
7.4.00.0090.00715.00
7.3.330.0020.00213.30
7.3.320.0000.00513.16
7.3.310.0000.00716.28
7.3.300.0040.00216.38
7.3.290.0070.01116.35
7.3.280.0090.00716.40
7.3.270.0120.00617.40
7.3.260.0040.01416.42
7.3.250.0140.00716.36
7.3.240.0070.01516.32
7.3.230.0080.02016.39
7.3.210.0100.00616.48
7.3.200.0070.01119.39
7.3.190.0030.01416.36
7.3.180.0060.00916.38
7.3.170.0030.01716.44
7.3.160.0100.00616.40
7.3.120.0070.00814.97
7.3.110.0090.00814.94
7.3.100.0070.00815.01
7.3.90.0070.00714.64
7.3.80.0080.00514.86
7.3.70.0060.00614.96
7.3.60.0080.00414.89
7.3.50.0030.00714.90
7.3.40.0030.01014.91
7.3.30.0070.00514.79
7.3.20.0030.00916.72
7.3.10.0030.01016.58
7.3.00.0040.00616.54
7.2.330.0110.01216.64
7.2.320.0090.01416.93
7.2.310.0060.01616.48
7.2.300.0060.01216.75
7.2.290.0080.00816.65
7.2.250.0050.01215.18
7.2.240.0090.00815.05
7.2.230.0090.00515.18
7.2.220.0070.00714.88
7.2.210.0050.01015.16
7.2.200.0050.00515.01
7.2.190.0060.00715.14
7.2.180.0060.01015.11
7.2.170.0020.01015.10
7.2.160.0080.00314.82
7.2.150.0100.00717.05
7.2.140.0070.01016.69
7.2.130.0060.00616.73
7.2.120.0030.01017.06
7.2.110.0040.00816.91
7.2.100.0030.01017.10
7.2.90.0030.01016.87
7.2.80.0060.00617.04
7.2.70.0130.00316.93
7.2.60.0000.01517.04
7.2.50.0030.00617.02
7.2.40.0000.01217.05
7.2.30.0070.01017.17
7.2.20.0080.00816.77
7.2.10.0060.00617.03
7.2.00.0070.00716.86
7.1.330.0060.00715.74
7.1.320.0050.01015.82
7.1.310.0060.00515.71
7.1.300.0090.00315.81
7.1.290.0080.00515.81
7.1.280.0040.01115.77
7.1.270.0080.00315.73
7.1.260.0030.00615.93
7.1.250.0040.00415.60
7.1.240.0040.00815.77
7.1.230.0000.01215.95
7.1.220.0040.01115.82
7.1.210.0060.00815.91
7.1.200.0100.00315.89
7.1.190.0080.00415.90
7.1.180.0060.00615.80
7.1.170.0030.00915.80
7.1.160.0060.00615.82
7.1.150.0120.00015.76
7.1.140.0000.01015.84
7.1.130.0060.00615.91
7.1.120.0100.00615.92
7.1.110.0040.01115.64
7.1.100.0100.00315.86
7.1.90.0000.01015.70
7.1.80.0090.00315.55
7.1.70.0070.00216.55
7.1.60.0060.01117.69
7.1.50.0110.00816.44
7.1.40.0060.00616.02
7.1.30.0060.00315.45
7.1.20.0030.01015.89
7.1.10.0080.00815.77
7.1.00.0080.01719.20
7.0.330.0070.00715.50
7.0.320.0000.00915.27
7.0.310.0070.00715.36
7.0.300.0070.00415.59
7.0.290.0050.00515.44
7.0.280.0060.01215.21
7.0.270.0100.00315.37
7.0.260.0000.01315.10
7.0.250.0080.00415.50
7.0.240.0130.00315.43
7.0.230.0060.00615.32
7.0.220.0060.00615.59
7.0.210.0000.00815.42
7.0.200.0030.00615.98
7.0.190.0070.00315.15
7.0.180.0000.00815.31
7.0.170.0060.00315.49
7.0.160.0060.00615.38
7.0.150.0000.01415.41
7.0.140.0030.04218.77
7.0.130.0030.01015.36
7.0.120.0140.00015.66
7.0.110.0020.04917.74
7.0.100.0070.03217.61
7.0.90.0050.04517.67
7.0.80.0050.04017.77
7.0.70.0080.04017.65
7.0.60.0100.03917.81
7.0.50.0030.04417.61
7.0.40.0050.04616.53
7.0.30.0080.04716.55
7.0.20.0050.04616.52
7.0.10.0080.04616.64
7.0.00.0030.03916.53
5.6.400.0040.00714.60
5.6.390.0040.00814.43
5.6.380.0060.00614.56
5.6.370.0050.00514.45
5.6.360.0030.01014.69
5.6.350.0070.00714.43
5.6.340.0040.01414.16
5.6.330.0090.00314.20
5.6.320.0000.01114.32
5.6.310.0030.00614.25
5.6.300.0030.01414.50
5.6.290.0000.01314.58
5.6.280.0020.04017.89
5.6.270.0110.00414.54
5.6.260.0050.03017.59
5.6.250.0090.04117.58
5.6.240.0050.03817.38
5.6.230.0110.02517.35
5.6.220.0080.04117.44
5.6.210.0060.04317.49
5.6.200.0050.04717.46
5.6.190.0100.03717.36
5.6.180.0050.04317.42
5.6.170.0070.04517.65
5.6.160.0070.03717.50
5.6.150.0090.03917.61
5.6.140.0040.04517.41
5.6.130.0030.03717.41
5.6.120.0130.03417.55
5.6.110.0050.04817.54
5.6.100.0100.04317.39
5.6.90.0080.03617.35
5.6.80.0070.04217.22
5.6.70.0060.04917.21
5.6.60.0050.04317.08
5.6.50.0100.03817.23
5.6.40.0050.03117.14
5.6.30.0080.03017.10
5.6.20.0050.04417.23
5.6.10.0070.02517.29
5.6.00.0080.04017.21
5.5.380.0070.03815.99
5.5.370.0090.04215.92
5.5.360.0100.04015.86
5.5.350.0120.02815.94
5.5.340.0080.03816.22
5.5.330.0050.04316.18
5.5.320.0080.03816.26
5.5.310.0030.04716.17
5.5.300.0070.04316.04
5.5.290.0100.04016.09
5.5.280.0070.04116.24
5.5.270.0000.02616.26
5.5.260.0120.04216.10
5.5.250.0080.03816.22
5.5.240.0040.03115.77
5.5.230.0050.04115.88
5.5.220.0070.04015.89
5.5.210.0080.04015.77
5.5.200.0070.04115.71
5.5.190.0080.02715.95
5.5.180.0050.04415.81
5.5.170.0030.01014.27
5.5.160.0100.03815.86
5.5.150.0050.04015.88
5.5.140.0030.04415.78
5.5.130.0070.02415.91
5.5.120.0020.02815.77
5.5.110.0080.04315.72
5.5.100.0120.03315.76
5.5.90.0090.03315.66
5.5.80.0070.04015.86
5.5.70.0050.04515.74
5.5.60.0020.04515.75
5.5.50.0070.02015.91
5.5.40.0050.04215.91
5.5.30.0120.03515.74
5.5.20.0100.03715.72
5.5.10.0060.02515.78
5.5.00.0030.04015.87
5.4.450.0050.04015.63
5.4.440.0050.04015.63
5.4.430.0120.04015.69
5.4.420.0050.02915.51
5.4.410.0110.03615.56
5.4.400.0050.03915.53
5.4.390.0030.02815.49
5.4.380.0070.03915.46
5.4.370.0080.03315.37
5.4.360.0050.04215.54
5.4.350.0020.03515.38
5.4.340.0010.02315.35
5.4.330.0060.00311.75
5.4.320.0070.03015.39
5.4.310.0080.03715.42
5.4.300.0090.04315.35
5.4.290.0050.04415.37
5.4.280.0050.02915.53
5.4.270.0050.04115.54
5.4.260.0050.04015.45
5.4.250.0030.02815.48
5.4.240.0030.02715.53
5.4.230.0020.03115.35
5.4.220.0100.01815.35
5.4.210.0030.02415.45
5.4.200.0050.03815.46
5.4.190.0040.03915.46
5.4.180.0070.03815.38
5.4.170.0050.02315.35
5.4.160.0050.03815.45
5.4.150.0060.01815.45
5.4.140.0040.02014.02
5.4.130.0030.02314.17
5.4.120.0050.03514.19
5.4.110.0050.04014.09
5.4.100.0030.04014.16
5.4.90.0050.03714.12
5.4.80.0050.04114.14
5.4.70.0070.03814.14
5.4.60.0050.03914.07
5.4.50.0090.02213.99
5.4.40.0070.04014.09
5.4.30.0030.04114.11
5.4.20.0150.03014.02
5.4.10.0070.03514.13
5.4.00.0060.03813.74
5.3.290.0070.03813.25
5.3.280.0030.03913.24
5.3.270.0030.04613.11
5.3.260.0090.03613.18
5.3.250.0030.02313.24
5.3.240.0020.02513.17
5.3.230.0000.04513.16
5.3.220.0030.04013.15
5.3.210.0060.03113.22
5.3.200.0050.04013.16
5.3.190.0050.04113.22
5.3.180.0020.04413.16
5.3.170.0060.02313.15
5.3.160.0090.03813.08
5.3.150.0110.02013.22
5.3.140.0080.03313.17
5.3.130.0050.03913.21
5.3.120.0050.04413.14
5.3.110.0080.03313.15
5.3.100.0060.03612.89
5.3.90.0050.03212.92
5.3.80.0070.03212.88
5.3.70.0110.03312.88
5.3.60.0030.03312.88
5.3.50.0070.02812.84
5.3.40.0030.04212.77
5.3.30.0090.01812.83
5.3.20.0050.03912.72
5.3.10.0070.01512.71
5.3.00.0020.02512.68
5.2.170.0030.05313.20
5.2.160.0030.06313.20
5.2.150.0070.05713.20
5.2.140.0070.05713.20
5.2.130.0170.04713.20
5.2.120.0100.05713.20
5.2.110.0070.06013.20
5.2.100.0030.06013.20
5.2.90.0030.06013.20
5.2.80.0030.03013.20
5.2.70.0070.04313.20
5.2.60.0070.02313.20
5.2.50.0070.06013.20
5.2.40.0030.04013.20
5.2.30.0100.05013.20
5.2.20.0030.02713.20
5.2.10.0070.02313.20
5.2.00.0000.05313.20
5.1.60.0070.05013.20
5.1.50.0030.02013.20
5.1.40.0000.04313.20
5.1.30.0030.05713.20
5.1.20.0030.03013.20
5.1.10.0070.03713.20
5.1.00.0000.04713.20
5.0.50.0000.04713.20
5.0.40.0130.03313.20
5.0.30.0030.06313.20
5.0.20.0030.03713.20
5.0.10.0100.05013.20
5.0.00.0070.06713.20
4.4.90.0000.03713.20
4.4.80.0070.01013.20
4.4.70.0000.03713.20
4.4.60.0000.03713.20
4.4.50.0070.03313.20
4.4.40.0030.04313.20
4.4.30.0000.03713.20
4.4.20.0030.03313.20
4.4.10.0070.03313.20
4.4.00.0070.02713.20
4.3.110.0030.03313.20
4.3.100.0070.01713.20
4.3.90.0100.02713.20
4.3.80.0000.03713.20
4.3.70.0000.01713.20
4.3.60.0030.02713.20
4.3.50.0070.02713.20
4.3.40.0000.03013.20
4.3.30.0030.03013.20
4.3.20.0030.02713.20
4.3.10.0000.02013.20
4.3.00.0000.01713.20

preferences:
37.95 ms | 400 KiB | 5 Q