3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo $string = 'Automóvel'; //echo utf8_encode($string); $products = array('horloges', 'media', 'gereedschap'); echo'<pre>';print_r($products); // convert to a string $string = json_encode($products); echo $string; // ["horloges","media","gereedschap"]

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.0070.01116.38
8.3.50.0110.00821.95
8.3.40.0070.01018.70
8.3.30.0070.00719.06
8.3.20.0070.00020.16
8.3.10.0070.00023.68
8.3.00.0090.00019.12
8.2.180.0190.00316.63
8.2.170.0040.01122.96
8.2.160.0190.00020.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.01026.16
8.2.120.0040.00422.21
8.2.110.0030.00622.20
8.2.100.0000.01117.72
8.2.90.0050.00318.03
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0000.00920.07
8.2.30.0000.00718.02
8.2.20.0040.00417.61
8.2.10.0050.00218.16
8.2.00.0030.00817.60
8.1.280.0110.00725.92
8.1.270.0040.00423.88
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00720.58
8.1.230.0070.00421.06
8.1.220.0040.00417.78
8.1.210.0000.00818.88
8.1.200.0030.00617.09
8.1.190.0040.00417.41
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0000.00721.93
8.1.150.0030.00718.63
8.1.140.0050.00217.37
8.1.130.0030.00317.86
8.1.120.0070.00017.39
8.1.110.0070.00017.43
8.1.100.0030.00317.28
8.1.90.0000.00717.42
8.1.80.0070.00017.30
8.1.70.0000.00717.29
8.1.60.0040.00417.46
8.1.50.0050.00217.29
8.1.40.0060.00317.44
8.1.30.0060.00317.38
8.1.20.0000.00717.59
8.1.10.0000.00717.48
8.1.00.0040.00417.29
8.0.300.0080.00019.99
8.0.290.0000.00717.05
8.0.280.0030.00318.34
8.0.270.0030.00317.18
8.0.260.0030.00317.18
8.0.250.0000.00716.84
8.0.240.0000.00716.93
8.0.230.0080.00016.92
8.0.220.0000.00716.86
8.0.210.0030.00316.71
8.0.200.0070.00016.83
8.0.190.0080.00016.79
8.0.180.0070.00016.86
8.0.170.0050.00316.75
8.0.160.0000.00716.68
8.0.150.0040.00416.72
8.0.140.0000.00716.67
8.0.130.0000.00613.27
8.0.120.0080.00016.79
8.0.110.0070.00016.75
8.0.100.0050.00216.81
8.0.90.0030.00316.76
8.0.80.0000.01516.76
8.0.70.0040.00416.76
8.0.60.0050.00216.76
8.0.50.0000.00816.75
8.0.30.0060.01117.00
8.0.20.0090.01017.40
8.0.10.0000.00716.74
8.0.00.0090.00816.75
7.4.330.0000.00615.02
7.4.320.0000.00716.52
7.4.300.0030.00316.52
7.4.290.0000.00616.53
7.4.280.0000.00716.40
7.4.270.0050.00216.46
7.4.260.0050.00316.44
7.4.250.0070.00016.34
7.4.240.0050.00216.52
7.4.230.0000.00616.42
7.4.220.0110.00716.50
7.4.210.0080.00616.50
7.4.200.0070.00016.55
7.4.190.0030.00316.37
7.4.160.0110.00516.45
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0100.00816.49
7.4.120.0110.00616.43
7.4.110.0090.00816.25
7.4.100.0150.00616.42
7.4.90.0090.00916.54
7.4.80.0030.01719.39
7.4.70.0130.00616.46
7.4.60.0060.01316.43
7.4.50.0000.00816.48
7.4.40.0000.01322.77
7.4.30.0030.01316.34
7.4.00.0110.00414.82
7.3.330.0060.00013.11
7.3.320.0060.00013.09
7.3.310.0040.00416.14
7.3.300.0040.00416.19
7.3.290.0070.01316.29
7.3.280.0090.00916.19
7.3.270.0130.01317.40
7.3.260.0060.01216.09
7.3.250.0180.00516.44
7.3.240.0130.00316.26
7.3.230.0040.01216.40
7.3.210.0030.01416.03
7.3.200.0130.00316.58
7.3.190.0060.01516.10
7.3.180.0100.00716.25
7.3.170.0110.00616.54
7.3.160.0110.01116.20
7.3.120.0060.00614.89
7.3.00.0110.00416.31
7.2.330.0070.01016.66
7.2.320.0060.01616.67
7.2.310.0080.00816.54
7.2.300.0040.01816.77
7.2.290.0140.00416.65
7.2.130.0070.01016.71
7.2.120.0030.01016.79
7.2.110.0030.01216.58
7.2.100.0030.01016.52
7.2.90.0030.01016.55
7.2.80.0040.00416.81
7.2.70.0090.00316.70
7.2.60.0080.00316.62
7.2.50.0070.00716.93
7.2.40.0080.00816.81
7.2.30.0120.00316.40
7.2.20.0070.00416.82
7.2.10.0070.01016.75
7.2.00.0060.00717.93
7.1.250.0030.00615.54
7.1.240.0040.00415.72
7.1.230.0110.00015.66
7.1.220.0090.00315.39
7.1.210.0040.00715.57
7.1.200.0090.00315.77
7.1.190.0030.01015.71
7.1.180.0030.00715.70
7.1.170.0060.00615.75
7.1.160.0030.01015.61
7.1.150.0060.00315.63
7.1.140.0110.00415.61
7.1.130.0090.00415.68
7.1.120.0000.00915.76
7.1.110.0110.00315.89
7.1.100.0080.00216.73
7.1.90.0060.00615.80
7.1.80.0050.00515.56
7.1.70.0040.01016.38
7.1.60.0050.01217.70
7.1.50.0050.01016.31
7.1.40.0040.00815.57
7.1.30.0100.00315.75
7.1.20.0070.00715.75
7.1.10.0030.01015.40
7.1.00.0040.04118.80
7.0.330.0060.00615.27
7.0.320.0110.00315.20
7.0.310.0080.00315.14
7.0.300.0090.00615.41
7.0.290.0000.01515.34
7.0.280.0030.01215.38
7.0.270.0040.01115.24
7.0.260.0110.00315.13
7.0.250.0060.00315.17
7.0.240.0060.00615.63
7.0.230.0070.00315.27
7.0.220.0030.00715.48
7.0.210.0000.00815.32
7.0.200.0070.00715.92
7.0.190.0000.01015.34
7.0.180.0060.00615.29
7.0.170.0030.01015.50
7.0.160.0080.00015.37
7.0.150.0070.00715.16
7.0.140.0020.04418.69
7.0.130.0070.00715.35
7.0.120.0020.03618.80
7.0.110.0020.03618.63
7.0.100.0030.03818.57
7.0.90.0030.04318.68
7.0.80.0020.04018.51
7.0.70.0020.04018.63
7.0.60.0030.04018.75
7.0.50.0020.04118.67
7.0.40.0060.03617.84
7.0.30.0080.03517.71
7.0.20.0050.03717.69
7.0.10.0020.04217.68
7.0.00.0040.03817.78
5.6.380.0000.01614.35
5.6.370.0070.00714.46
5.6.360.0000.00913.86
5.6.350.0030.00914.20
5.6.340.0060.00914.32
5.6.330.0120.00314.32
5.6.320.0060.00314.16
5.6.310.0030.01014.22
5.6.300.0030.01013.96
5.6.290.0030.01013.88
5.6.280.0030.04217.63
5.6.270.0040.00414.59
5.6.260.0020.03817.51
5.6.250.0020.04217.75
5.6.240.0030.04317.53
5.6.230.0030.04317.64
5.6.220.0050.03517.64
5.6.210.0070.03917.74
5.6.200.0070.04017.55
5.6.190.0020.04517.41
5.6.180.0050.03817.50
5.6.170.0020.04317.50
5.6.160.0060.03217.66
5.6.150.0060.04117.65
5.6.140.0050.03217.69
5.6.130.0080.03717.66
5.6.120.0030.04217.68
5.6.110.0030.03917.58
5.6.100.0090.03717.63
5.6.90.0050.03517.58
5.6.80.0030.03717.15
5.6.70.0050.03617.28
5.6.60.0090.03617.22
5.6.50.0030.03917.33
5.6.40.0030.04017.19
5.6.30.0020.04017.20
5.6.20.0100.03517.40
5.6.10.0050.03217.28
5.6.00.0050.03817.13
5.5.380.0050.03514.38
5.5.370.0040.03314.32
5.5.360.0000.04114.21
5.5.350.0030.03714.25
5.5.340.0000.03914.59
5.5.330.0030.03614.69
5.5.320.0030.03914.33
5.5.310.0050.03514.44
5.5.300.0020.04014.52
5.5.290.0050.04014.53
5.5.280.0030.04114.60
5.5.270.0050.03814.51
5.5.260.0070.03714.42
5.5.250.0040.03914.53
5.5.240.0050.03714.26
5.5.230.0030.03814.31
5.5.220.0060.03314.22
5.5.210.0050.03514.17
5.5.200.0020.03514.17
5.5.190.0050.03714.23
5.5.180.0030.03814.16
5.5.170.0060.00310.91
5.5.160.0050.03814.30
5.5.150.0080.03114.19
5.5.140.0030.02814.25
5.5.130.0000.04114.36
5.5.120.0030.03614.36
5.5.110.0030.03514.17
5.5.100.0020.03714.04
5.5.90.0020.03614.31
5.5.80.0060.03214.07
5.5.70.0060.03014.17
5.5.60.0000.03914.20
5.5.50.0030.03714.29
5.5.40.0040.03213.98
5.5.30.0050.03514.04
5.5.20.0050.03414.04
5.5.10.0050.03314.20
5.5.00.0030.03614.17
5.4.450.0020.04115.27
5.4.440.0020.04215.09
5.4.430.0050.03815.38
5.4.420.0040.03815.34
5.4.410.0020.04015.04
5.4.400.0030.03615.09
5.4.390.0020.04115.03
5.4.380.0010.03914.99
5.4.370.0050.03515.09
5.4.360.0060.03515.05
5.4.350.0050.03615.02
5.4.340.0070.03315.02
5.4.330.0000.01111.05
5.4.320.0030.03915.18
5.4.310.0040.03515.05
5.4.300.0020.03715.06
5.4.290.0020.03814.94
5.4.280.0030.03314.81
5.4.270.0020.03815.06
5.4.260.0030.03514.89
5.4.250.0050.03514.90
5.4.240.0020.03515.13
5.4.230.0030.03414.84
5.4.220.0020.03815.01
5.4.210.0000.04015.00
5.4.200.0020.03715.08
5.4.190.0070.03414.96
5.4.180.0040.03714.89
5.4.170.0000.03915.04
5.4.160.0030.03614.95
5.4.150.0000.03814.90
5.4.140.0030.03213.63
5.4.130.0020.03313.68
5.4.120.0060.03213.80
5.4.110.0030.03613.57
5.4.100.0080.03213.81
5.4.90.0000.03513.70
5.4.80.0020.03413.83
5.4.70.0040.03413.78
5.4.60.0030.03413.78
5.4.50.0030.03513.68
5.4.40.0050.03213.69
5.4.30.0050.03013.80
5.4.20.0000.03613.73
5.4.10.0000.03513.51
5.4.00.0050.03313.47
5.3.290.0020.03812.66
5.3.280.0030.03512.56
5.3.270.0050.03312.43
5.3.260.0020.03712.61
5.3.250.0020.03112.49
5.3.240.0000.03812.57
5.3.230.0020.03912.60
5.3.220.0050.03512.37
5.3.210.0030.03712.51
5.3.200.0000.03312.45
5.3.190.0050.02912.56
5.3.180.0030.03112.57
5.3.170.0050.02812.60
5.3.160.0050.03512.55
5.3.150.0050.02712.59
5.3.140.0030.03612.57
5.3.130.0020.03812.46
5.3.120.0000.04112.54
5.3.110.0030.03912.49
5.3.100.0020.03512.15
5.3.90.0020.03512.19
5.3.80.0040.03412.15
5.3.70.0000.03812.15
5.3.60.0030.03312.28
5.3.50.0050.03212.04
5.3.40.0020.03712.13
5.3.30.0020.03612.19
5.3.20.0030.03312.09
5.3.10.0020.03511.93
5.3.00.0020.03411.86
5.2.170.0060.02810.54
5.2.160.0020.03010.54
5.2.150.0050.02510.57
5.2.140.0020.03210.47
5.2.130.0010.02910.50
5.2.120.0050.02910.50
5.2.110.0000.02810.59
5.2.100.0030.02810.52
5.2.90.0030.02710.59
5.2.80.0050.02710.50
5.2.70.0030.02810.51
5.2.60.0040.02710.49
5.2.50.0020.03010.54
5.2.40.0050.02710.58
5.2.30.0040.03010.45
5.2.20.0000.02910.49
5.2.10.0050.02810.46
5.2.00.0030.02610.31
5.1.60.0020.0229.94
5.1.50.0020.0229.96
5.1.40.0040.0239.93
5.1.30.0020.02710.14
5.1.20.0020.02710.14
5.1.10.0050.02210.01
5.1.00.0000.0279.99
5.0.50.0020.0189.81
5.0.40.0050.0179.81
5.0.30.0000.0329.81
5.0.20.0000.0219.81
5.0.10.0020.0209.81
5.0.00.0040.0289.81
4.4.90.0020.0179.81
4.4.80.0030.0159.81
4.4.70.0020.0139.81
4.4.60.0020.0159.81
4.4.50.0020.0159.81
4.4.40.0000.0249.81
4.4.30.0010.0169.81
4.4.20.0020.0159.81
4.4.10.0000.0179.81
4.4.00.0030.0239.81
4.3.110.0020.0179.81
4.3.100.0020.0159.81
4.3.90.0010.0169.81
4.3.80.0020.0209.81
4.3.70.0020.0159.81
4.3.60.0020.0159.81
4.3.50.0010.0189.81
4.3.40.0020.0259.81
4.3.30.0000.0199.81
4.3.20.0000.0209.81
4.3.10.0000.0189.81
4.3.00.0020.0159.81

preferences:
47.14 ms | 401 KiB | 5 Q