3v4l.org

run code in 300+ PHP versions simultaneously
<?php $images = array( 'myself.png' , 'friends.png' , 'colleagues.png' ); $js_code = 'var images = ' . json_encode($images); echo $js_code;

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.0060.00918.90
8.3.30.0110.00318.45
8.3.20.0080.00018.61
8.3.10.0060.00320.54
8.3.00.0040.00419.13
8.2.170.0120.00322.96
8.2.160.0110.00420.35
8.2.150.0000.00724.18
8.2.140.0000.00824.66
8.2.130.0050.00526.16
8.2.120.0040.00419.23
8.2.110.0040.00421.12
8.2.100.0080.00317.72
8.2.90.0030.00619.30
8.2.80.0070.00019.36
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0110.00018.07
8.2.40.0070.00018.16
8.2.30.0060.00318.15
8.2.20.0040.00417.61
8.2.10.0050.00317.77
8.2.00.0070.00417.65
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.42
8.1.230.0060.00620.93
8.1.220.0000.00817.77
8.1.210.0060.00318.85
8.1.200.0030.00617.13
8.1.190.0040.00417.41
8.1.180.0000.00818.10
8.1.170.0070.00018.91
8.1.160.0040.00418.75
8.1.150.0050.00218.56
8.1.140.0040.00417.28
8.1.130.0000.00817.90
8.1.120.0000.00817.40
8.1.110.0070.00017.45
8.1.100.0030.00317.41
8.1.90.0000.00717.28
8.1.80.0030.00317.43
8.1.70.0080.00017.37
8.1.60.0040.00417.47
8.1.50.0050.00317.27
8.1.40.0070.00017.48
8.1.30.0040.00417.57
8.1.20.0000.00717.39
8.1.10.0000.00717.41
8.1.00.0040.00417.41
8.0.300.0000.00720.03
8.0.290.0040.00416.75
8.0.280.0030.00318.30
8.0.270.0070.00017.16
8.0.260.0030.00316.73
8.0.250.0050.00216.95
8.0.240.0050.00216.85
8.0.230.0000.00716.93
8.0.220.0000.00716.93
8.0.210.0040.00416.84
8.0.200.0080.00016.82
8.0.190.0000.00716.82
8.0.180.0040.00416.80
8.0.170.0030.00616.93
8.0.160.0000.00716.84
8.0.150.0030.00616.88
8.0.140.0050.00216.83
8.0.130.0000.00513.34
8.0.120.0000.00816.70
8.0.110.0040.00416.68
8.0.100.0070.00016.87
8.0.90.0000.00716.70
8.0.80.0080.00816.80
8.0.70.0000.00716.86
8.0.60.0040.00416.87
8.0.50.0000.00716.79
8.0.30.0070.01316.99
8.0.20.0140.00717.06
8.0.10.0000.00816.88
8.0.00.0110.00816.57
7.4.330.0050.00012.90
7.4.320.0090.00016.57
7.4.300.0070.00016.38
7.4.290.0050.00216.43
7.4.280.0040.00416.44
7.4.270.0060.00016.53
7.4.260.0000.00513.15
7.4.250.0050.00516.40
7.4.240.0000.00816.34
7.4.230.0030.00316.52
7.4.220.0090.00916.29
7.4.210.0060.00816.45
7.4.200.0030.00316.53
7.4.190.0080.00016.29
7.4.160.0120.00416.39
7.4.150.0120.00516.49
7.4.140.0120.00816.38
7.4.130.0100.01116.46
7.4.120.0080.01016.38
7.4.110.0090.01316.47
7.4.100.0180.00616.38
7.4.90.0060.01016.48
7.4.80.0180.00416.39
7.4.70.0030.01416.55
7.4.60.0100.00716.40
7.4.50.0040.00416.38
7.4.40.0040.00816.48
7.4.30.0060.00916.43
7.4.00.0040.01114.86
7.3.330.0000.00613.01
7.3.320.0000.00513.00
7.3.310.0070.00016.26
7.3.300.0000.00616.22
7.3.290.0070.00716.20
7.3.280.0060.01016.21
7.3.270.0110.01116.25
7.3.260.0090.01316.70
7.3.250.0130.01016.46
7.3.240.0120.00416.36
7.3.230.0080.00816.29
7.3.210.0100.01016.20
7.3.200.0090.01319.39
7.3.190.0150.00616.19
7.3.180.0000.01616.59
7.3.170.0130.00316.30
7.3.160.0060.01016.28
7.3.120.0030.01014.96
7.2.330.0120.00616.53
7.2.320.0040.01316.67
7.2.310.0030.02016.77
7.2.300.0030.01616.65
7.2.290.0180.00616.72
7.2.00.0030.01019.14
7.1.200.0060.00615.72
7.1.100.0030.00618.24
7.1.70.0060.00316.89
7.1.60.0040.02119.40
7.1.50.0100.01016.99
7.1.00.0030.07722.37
7.0.200.0090.00914.98
7.0.140.0030.09722.21
7.0.120.0030.07322.09
7.0.90.0400.04320.13
7.0.80.0400.04319.84
7.0.70.0470.03720.14
7.0.60.0400.04019.91
7.0.50.0370.04320.30
7.0.40.0030.04320.09
7.0.30.0100.07320.10
7.0.20.0070.04020.08
7.0.10.0030.04319.95
7.0.00.0030.04319.95
5.6.280.0030.07321.02
5.6.240.0070.05320.67
5.6.230.0030.04020.49
5.6.220.0000.04020.61
5.6.210.0030.04020.74
5.6.200.0030.04320.98
5.6.190.0030.03720.94
5.6.180.0030.04021.11
5.6.170.0100.06020.93
5.6.160.0000.04320.93
5.6.150.0030.04021.13
5.6.140.0070.04721.09
5.6.130.0030.05321.03
5.6.120.0130.06021.09
5.6.110.0100.07021.09
5.6.100.0030.08021.09
5.6.90.0170.06321.01
5.6.80.0070.04320.31
5.6.70.0030.08720.37
5.6.60.0130.07020.44
5.6.50.0100.07320.32
5.6.40.0030.04720.39
5.6.30.0070.03720.41
5.6.20.0070.04020.45
5.6.10.0030.08320.48
5.6.00.0100.03320.39
5.5.380.0030.08020.38
5.5.370.0030.04020.50
5.5.360.0030.04320.39
5.5.350.0000.04320.43
5.5.340.0030.03320.77
5.5.330.0030.04020.75
5.5.320.0030.06020.80
5.5.310.0070.03720.88
5.5.300.0230.06720.88
5.5.290.0070.08020.75
5.5.280.0070.05020.81
5.5.270.0030.07720.75
5.5.260.0030.08320.87
5.5.250.0070.08020.54
5.5.240.0100.03720.29
5.5.230.0030.08020.29
5.5.220.0000.08320.17
5.5.210.0070.06720.01
5.5.200.0070.05020.11
5.5.190.0130.07320.25
5.5.180.0130.04720.23
5.5.160.0100.07320.20
5.5.150.0130.07020.21
5.5.140.0070.08020.17
5.5.130.0100.04320.21
5.5.120.0000.06320.18
5.5.110.0030.08020.26
5.5.100.0100.07720.11
5.5.90.0070.04720.04
5.5.80.0130.06320.10
5.5.70.0030.07319.97
5.5.60.0100.07320.05
5.5.50.0170.06319.99
5.5.40.0000.05720.01
5.5.30.0130.06320.04
5.5.20.0100.05020.04
5.5.10.0030.08720.08
5.5.00.0030.07319.91
5.4.450.0130.07019.32
5.4.440.0100.05319.30
5.4.430.0030.08019.23
5.4.420.0130.07319.45
5.4.410.0070.08019.22
5.4.400.0000.04019.07
5.4.390.0130.04719.06
5.4.380.0130.04719.15
5.4.370.0070.05319.03
5.4.360.0030.04319.19
5.4.350.0100.07318.91
5.4.340.0130.05718.94
5.4.320.0130.07319.03
5.4.310.0030.08318.96
5.4.300.0130.04019.14
5.4.290.0130.07019.03
5.4.280.0030.05018.78
5.4.270.0130.07018.94
5.4.260.0070.07718.81
5.4.250.0100.07319.09
5.4.240.0030.04719.02
5.4.230.0130.07718.90
5.4.220.0030.06719.09
5.4.210.0100.04718.97
5.4.200.0230.06019.05
5.4.190.0170.06319.02
5.4.180.0030.08019.02
5.4.170.0030.06319.08
5.4.160.0030.07319.00
5.4.150.0100.07019.12
5.4.140.0100.07016.31
5.4.130.0030.06716.28
5.4.120.0130.04016.07
5.4.110.0070.04016.34
5.4.100.0070.07716.21
5.4.90.0070.06716.30
5.4.80.0000.05716.32
5.4.70.0030.04016.33
5.4.60.0070.03316.39
5.4.50.0070.07716.15
5.4.40.0200.04316.23
5.4.30.0030.03716.40
5.4.20.0030.06016.28
5.4.10.0130.06716.27
5.4.00.0030.07015.66
5.3.290.0030.05014.52
5.3.280.0170.06714.58
5.3.270.0070.06714.56
5.3.260.0170.06714.44
5.3.250.0030.04714.44
5.3.240.0030.07714.56
5.3.230.0030.05014.43
5.3.220.0070.04314.54
5.3.210.0100.04014.55
5.3.200.0100.06714.51
5.3.190.0000.07714.53
5.3.180.0130.06714.46
5.3.170.0070.06714.41
5.3.160.0070.07314.42
5.3.150.0000.04714.52
5.3.140.0070.07314.54
5.3.130.0030.07314.50
5.3.120.0030.06014.53
5.3.110.0130.06314.45
5.3.100.0030.04713.94
5.3.90.0070.04013.88
5.3.80.0070.07013.86
5.3.70.0100.07013.87
5.3.60.0000.05314.01
5.3.50.0030.04713.79
5.3.40.0070.05313.90
5.3.30.0000.08013.88
5.3.20.0000.04713.68
5.3.10.0070.06713.56
5.3.00.0030.07713.58
5.2.170.0030.06011.10
5.2.160.0030.06011.06
5.2.150.0100.05011.18
5.2.140.0070.05011.06
5.2.130.0030.03310.89
5.2.120.0030.03011.09
5.2.110.0070.06011.09
5.2.100.0030.06311.16
5.2.90.0070.05710.96
5.2.80.0030.05311.09
5.2.70.0030.06711.08
5.2.60.0170.04711.04
5.2.50.0000.06711.05
5.2.40.0030.03310.91
5.2.30.0030.06011.04
5.2.20.0070.06010.82
5.2.10.0000.06310.93
5.2.00.0100.05310.76
5.1.60.0000.0539.87
5.1.50.0030.03710.03
5.1.40.0030.0539.95
5.1.30.0070.05710.34
5.1.20.0130.05310.36
5.1.10.0070.04310.05
5.1.00.0000.04310.11
5.0.50.0030.0438.52
5.0.40.0030.0308.41
5.0.30.0030.0478.27
5.0.20.0130.0378.18
5.0.10.0070.0338.14
5.0.00.0070.0638.18
4.4.90.0000.0377.52
4.4.80.0000.0277.52
4.4.70.0000.0407.52
4.4.60.0100.0207.52
4.4.50.0000.0307.52
4.4.40.0100.0477.52
4.4.30.0000.0207.52
4.4.20.0000.0207.52
4.4.10.0070.0337.52
4.4.00.0030.0537.52
4.3.110.0100.0277.52
4.3.100.0030.0337.52
4.3.90.0000.0277.52
4.3.80.0000.0507.52
4.3.70.0000.0307.52
4.3.60.0000.0377.52
4.3.50.0000.0337.52
4.3.40.0070.0437.52
4.3.30.0000.0237.52
4.3.20.0000.0407.52
4.3.10.0030.0277.52
4.3.00.0000.0237.52

preferences:
39.19 ms | 400 KiB | 5 Q