3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( array('w' => '100', 'h'=>'100'), array('w' => '200', 'h'=>'200'), array('w' => 300, 'h'=>300), ); $new_values = ''; foreach($values as $value) { $new_values[] = json_encode(array($value['w'], $value['h'])); } echo implode(',', $new_values); // [100,100],[200,200],[300,300]

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.40.0120.00318.84
8.3.30.0060.00919.27
8.3.20.0040.00420.34
8.3.10.0060.00323.70
8.3.00.0050.00318.92
8.2.170.0130.00322.96
8.2.160.0170.00020.35
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.01320.63
8.2.110.0000.01122.25
8.2.100.0080.00418.16
8.2.90.0040.00419.27
8.2.80.0030.00617.97
8.2.70.0050.00317.75
8.2.60.0060.00318.05
8.2.50.0040.00418.22
8.2.40.0000.00720.42
8.2.30.0080.00019.32
8.2.20.0000.00817.81
8.2.10.0040.00418.13
8.2.00.0000.00817.87
8.1.270.0060.00324.02
8.1.260.0080.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.57
8.1.230.0110.00020.45
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00617.36
8.1.180.0060.00320.20
8.1.170.0030.00618.53
8.1.160.0030.00618.87
8.1.150.0000.00720.06
8.1.140.0000.00717.46
8.1.130.0030.00317.79
8.1.120.0040.00417.49
8.1.110.0040.00417.36
8.1.100.0030.00317.47
8.1.90.0000.00717.37
8.1.80.0000.00717.32
8.1.70.0000.00717.37
8.1.60.0040.00417.58
8.1.50.0000.00817.57
8.1.40.0110.00017.55
8.1.30.0040.00717.55
8.1.20.0110.00017.56
8.1.10.0000.00717.57
8.1.00.0040.00417.52
8.0.300.0000.00918.77
8.0.290.0060.00316.63
8.0.280.0040.00418.46
8.0.270.0040.00417.17
8.0.260.0080.00017.26
8.0.250.0030.00317.04
8.0.240.0070.00016.98
8.0.230.0030.00316.96
8.0.220.0000.00716.98
8.0.210.0040.00416.90
8.0.200.0070.00017.06
8.0.190.0080.00017.02
8.0.180.0040.00416.97
8.0.170.0050.00316.89
8.0.160.0040.00416.98
8.0.150.0030.00716.87
8.0.140.0000.00816.91
8.0.130.0030.00313.43
8.0.120.0040.00416.98
8.0.110.0040.00416.88
8.0.100.0070.00016.74
8.0.90.0000.00816.85
8.0.80.0170.00416.91
8.0.70.0030.00516.84
8.0.60.0020.00516.98
8.0.50.0050.00216.84
8.0.30.0030.01517.07
8.0.20.0120.00717.40
8.0.10.0040.00417.12
8.0.00.0070.01016.69
7.4.330.0050.00015.09
7.4.320.0070.00016.53
7.4.300.0030.00316.48
7.4.290.0030.00316.59
7.4.280.0050.00216.52
7.4.270.0050.00216.65
7.4.260.0000.01016.57
7.4.250.0040.00416.49
7.4.240.0040.00316.55
7.4.230.0070.00016.31
7.4.220.0090.00916.72
7.4.210.0070.01016.66
7.4.200.0030.00316.62
7.4.190.0030.00316.37
7.4.160.0140.00616.56
7.4.150.0080.00917.40
7.4.140.0140.01017.86
7.4.130.0090.01216.57
7.4.120.0080.00816.61
7.4.110.0070.01116.60
7.4.100.0160.00616.46
7.4.90.0070.01116.52
7.4.80.0060.01619.39
7.4.70.0110.01416.50
7.4.60.0060.01116.62
7.4.50.0050.00016.36
7.4.40.0060.01316.71
7.4.30.0130.01016.61
7.4.00.0050.00815.02
7.3.330.0000.00613.19
7.3.320.0050.00013.38
7.3.310.0040.00416.28
7.3.300.0040.00416.43
7.3.290.0090.00916.32
7.3.280.0110.00816.31
7.3.270.0100.00717.40
7.3.260.0040.01616.66
7.3.250.0050.01316.50
7.3.240.0090.00616.38
7.3.230.0130.01016.61
7.3.210.0050.01116.57
7.3.200.0090.01319.39
7.3.190.0090.01216.35
7.3.180.0030.01316.45
7.3.170.0090.00616.47
7.3.160.0050.01016.54
7.3.120.0060.00514.81
7.3.110.0070.00714.72
7.3.100.0030.01215.01
7.3.90.0070.00714.91
7.3.80.0040.01114.86
7.3.70.0030.01214.91
7.3.60.0120.00314.92
7.3.50.0100.00314.95
7.3.40.0030.00914.84
7.3.30.0060.00914.96
7.3.20.0080.00716.61
7.3.10.0070.00716.89
7.3.00.0120.00316.56
7.2.330.0100.00716.78
7.2.320.0060.01216.70
7.2.310.0090.00916.75
7.2.300.0100.00716.41
7.2.290.0140.00316.71
7.2.250.0030.01214.95
7.2.240.0030.01514.96
7.2.230.0060.00915.13
7.2.220.0030.01315.31
7.2.210.0000.01015.20
7.2.200.0040.01115.13
7.2.190.0070.00715.03
7.2.180.0070.00315.06
7.2.170.0070.00714.85
7.2.60.0000.01116.66
7.2.00.0000.01419.60
7.1.330.0030.01215.64
7.1.320.0110.00315.59
7.1.310.0090.00615.48
7.1.300.0060.00615.75
7.1.290.0090.00415.43
7.1.280.0100.00315.76
7.1.270.0000.00815.71
7.1.260.0090.00315.82
7.1.200.0060.00315.75
7.1.100.0120.00817.89
7.1.70.0030.01217.03
7.1.60.0150.00619.46
7.1.50.0040.01416.63
7.1.00.0000.08022.43
7.0.200.0040.00416.63
7.0.140.0030.07021.99
7.0.90.0070.08019.87
7.0.80.0100.05719.85
7.0.70.0130.03319.97
7.0.60.0100.08319.98
7.0.50.0030.08720.20
7.0.40.0100.05320.10
7.0.30.0000.08720.08
7.0.20.0030.07720.13
7.0.10.0100.07720.07
7.0.00.0100.08020.07
5.6.280.0000.07720.89
5.6.240.0300.05720.72
5.6.230.0030.05720.50
5.6.220.0130.07020.73
5.6.210.0070.08320.64
5.6.200.0200.06320.95
5.6.190.0030.06321.00
5.6.180.0100.05721.13
5.6.170.0030.08321.13
5.6.160.0170.07021.04
5.6.150.0130.07721.11
5.6.140.0030.05320.93
5.6.130.0130.07321.04
5.6.120.0130.06321.04
5.6.110.0030.06021.04
5.6.100.0070.07721.03
5.6.90.0070.04721.04
5.6.80.0000.04720.43
5.6.70.0070.07720.43
5.6.60.0130.07020.50
5.6.50.0030.08720.44
5.6.40.0070.08020.32
5.6.30.0170.07020.29
5.6.20.0070.04320.43
5.6.10.0100.08020.30
5.6.00.0030.08320.30
5.5.380.0070.06720.36
5.5.370.0170.05720.56
5.5.360.0030.08320.38
5.5.350.0170.07020.44
5.5.340.0030.07020.90
5.5.330.0000.08720.86
5.5.320.0200.06720.91
5.5.310.0130.07720.82
5.5.300.0030.08320.76
5.5.290.0130.07320.86
5.5.280.0130.04320.84
5.5.270.0070.08320.85
5.5.260.0070.07020.81
5.5.250.0100.08020.63
5.5.240.0100.07320.17
5.5.230.0130.04020.17
5.5.220.0070.08320.20
5.5.210.0070.07320.29
5.5.200.0170.04720.28
5.5.190.0100.07320.26
5.5.180.0070.05319.98
5.5.160.0170.07020.23
5.5.150.0000.07320.14
5.5.140.0070.07020.17
5.5.130.0070.05720.17
5.5.120.0130.06720.12
5.5.110.0130.07320.27
5.5.100.0030.08720.06
5.5.90.0000.08720.16
5.5.80.0070.07020.04
5.5.70.0100.07020.06
5.5.60.0070.06720.14
5.5.50.0100.07720.05
5.5.40.0130.07320.13
5.5.30.0130.07719.95
5.5.20.0170.06320.05
5.5.10.0170.06020.10
5.5.00.0030.07320.02
5.4.450.0030.07719.48
5.4.440.0030.07319.42
5.4.430.0170.07019.39
5.4.420.0030.07319.55
5.4.410.0070.04719.34
5.4.400.0070.07319.15
5.4.390.0030.04719.01
5.4.380.0070.05319.23
5.4.370.0100.04319.10
5.4.360.0100.06718.93
5.4.350.0070.07018.98
5.4.340.0070.04319.10
5.4.320.0130.07719.09
5.4.310.0070.08018.96
5.4.300.0030.04719.03
5.4.290.0030.08018.78
5.4.280.0070.06319.02
5.4.270.0000.05719.02
5.4.260.0070.05019.06
5.4.250.0130.06719.11
5.4.240.0030.07719.04
5.4.230.0070.07718.79
5.4.220.0170.07019.09
5.4.210.0100.07319.02
5.4.200.0070.06718.80
5.4.190.0130.06718.96
5.4.180.0070.07719.21
5.4.170.0070.08019.05
5.4.160.0100.05319.00
5.4.150.0230.06018.79
5.4.140.0170.07016.29
5.4.130.0030.07316.24
5.4.120.0170.06316.32
5.4.110.0030.06316.30
5.4.100.0130.06716.41
5.4.90.0070.05316.25
5.4.80.0070.06316.21
5.4.70.0030.08016.31
5.4.60.0130.07016.30
5.4.50.0170.06016.17
5.4.40.0100.04316.26
5.4.30.0030.03716.32
5.4.20.0070.05716.38
5.4.10.0000.07716.30
5.4.00.0070.03715.77
5.3.290.0070.07714.50
5.3.280.0070.06014.61
5.3.270.0030.08014.59
5.3.260.0000.08014.55
5.3.250.0000.07014.60
5.3.240.0030.07314.59
5.3.230.0130.07714.55
5.3.220.0100.07014.55
5.3.210.0000.07714.57
5.3.200.0100.07014.57
5.3.190.0070.07714.42
5.3.180.0030.08014.50
5.3.170.0070.07314.54
5.3.160.0100.06714.50
5.3.150.0100.07314.55
5.3.140.0070.06714.38
5.3.130.0030.04014.37
5.3.120.0030.04014.54
5.3.110.0000.04714.41
5.3.100.0070.03714.01
5.3.90.0100.03014.01
5.3.80.0070.03314.00
5.3.70.0030.03714.01
5.3.60.0030.03713.96
5.3.50.0000.04013.93
5.3.40.0170.02313.91
5.3.30.0030.03713.76
5.3.20.0030.04013.45
5.3.10.0030.03713.61
5.3.00.0000.03713.59
5.2.170.0070.03011.16
5.2.160.0030.03310.97
5.2.150.0030.03711.13
5.2.140.0000.03011.13
5.2.130.0100.04710.91
5.2.120.0070.04011.14
5.2.110.0030.03011.16
5.2.100.0000.04711.02
5.2.90.0000.03311.09
5.2.80.0070.05010.91
5.2.70.0030.05011.08
5.2.60.0000.03311.05
5.2.50.0030.03010.84
5.2.40.0000.03310.98
5.2.30.0000.03011.04
5.2.20.0170.02010.95
5.2.10.0030.04010.76
5.2.00.0030.03310.75
5.1.60.0000.0309.98
5.1.50.0030.0239.98
5.1.40.0000.0279.82
5.1.30.0030.02710.39
5.1.20.0030.02310.35
5.1.10.0000.06310.13
5.1.00.0100.04710.10
5.0.50.0100.0208.57
5.0.40.0000.0208.45
5.0.30.0100.0238.30
5.0.20.0000.0478.20
5.0.10.0000.0208.23
5.0.00.0030.0308.14
4.4.90.0030.0337.35
4.4.80.0000.0177.35
4.4.70.0030.0277.35
4.4.60.0070.0207.35
4.4.50.0070.0137.35
4.4.40.0070.0407.35
4.4.30.0000.0177.35
4.4.20.0000.0277.35
4.4.10.0000.0177.35
4.4.00.0000.0277.35
4.3.110.0070.0207.35
4.3.100.0030.0177.35
4.3.90.0000.0207.35
4.3.80.0000.0277.35
4.3.70.0070.0107.35
4.3.60.0070.0107.35
4.3.50.0030.0137.35
4.3.40.0000.0277.35
4.3.30.0070.0277.35
4.3.20.0000.0177.35
4.3.10.0030.0137.35
4.3.00.0030.0207.35

preferences:
48.73 ms | 400 KiB | 5 Q