3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo $string = 'Automóvel'; //echo utf8_encode($string); $products = array('horloges', 'media', 'Automóvel'); 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.40.0140.00318.39
8.3.30.0100.00318.83
8.3.20.0000.00720.25
8.3.10.0070.00023.48
8.3.00.0080.00019.26
8.2.170.0090.00622.96
8.2.160.0100.00320.57
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0090.00926.16
8.2.120.0000.00822.06
8.2.110.0100.00720.46
8.2.100.0060.00617.60
8.2.90.0000.00817.82
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0030.00517.93
8.2.50.0030.00618.07
8.2.40.0040.00419.95
8.2.30.0040.00418.03
8.2.20.0040.00417.54
8.2.10.0040.00418.21
8.2.00.0100.00017.71
8.1.270.0030.00522.05
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0070.00320.64
8.1.230.0070.00320.97
8.1.220.0040.00417.78
8.1.210.0030.00618.77
8.1.200.0050.00517.23
8.1.190.0060.00317.38
8.1.180.0030.00918.72
8.1.170.0050.00318.48
8.1.160.0050.00221.92
8.1.150.0040.00718.48
8.1.140.0000.00817.29
8.1.130.0030.00317.75
8.1.120.0000.00717.41
8.1.110.0030.00617.30
8.1.100.0000.00717.36
8.1.90.0040.00417.29
8.1.80.0030.00317.43
8.1.70.0030.00517.38
8.1.60.0000.00817.52
8.1.50.0000.00817.46
8.1.40.0030.00517.33
8.1.30.0040.00417.39
8.1.20.0000.00817.52
8.1.10.0080.00017.50
8.1.00.0040.00417.41
8.0.300.0040.00419.86
8.0.290.0000.00717.16
8.0.280.0030.00318.43
8.0.270.0050.00317.27
8.0.260.0000.00618.38
8.0.250.0030.00316.81
8.0.240.0000.00716.92
8.0.230.0070.00016.89
8.0.220.0070.00016.69
8.0.210.0070.00016.66
8.0.200.0070.00016.89
8.0.190.0080.00016.73
8.0.180.0000.00716.68
8.0.170.0000.00716.69
8.0.160.0040.00416.68
8.0.150.0030.00316.68
8.0.140.0000.00716.76
8.0.130.0030.00313.29
8.0.120.0080.00016.76
8.0.110.0050.00216.79
8.0.100.0040.00416.70
8.0.90.0050.00216.80
8.0.80.0070.01016.86
8.0.70.0000.00716.68
8.0.60.0040.00416.69
8.0.50.0030.00316.82
8.0.30.0060.01216.94
8.0.20.0110.01117.40
8.0.10.0030.00516.91
8.0.00.0100.00716.51
7.4.330.0060.00015.00
7.4.320.0040.00416.50
7.4.300.0040.00416.42
7.4.290.0030.00316.54
7.4.280.0040.00416.44
7.4.270.0030.00316.53
7.4.260.0040.00416.54
7.4.250.0070.00016.30
7.4.240.0020.00516.45
7.4.230.0030.00316.35
7.4.220.0030.01316.47
7.4.210.0110.00516.47
7.4.200.0030.00316.55
7.4.190.0070.00016.59
7.4.160.0140.00516.32
7.4.150.0100.01017.40
7.4.140.0140.00517.86
7.4.130.0100.00716.54
7.4.120.0110.00716.45
7.4.110.0060.01016.43
7.4.100.0060.01216.50
7.4.90.0030.01516.38
7.4.80.0150.00719.39
7.4.70.0090.01316.51
7.4.60.0090.00616.38
7.4.50.0000.00516.50
7.4.40.0060.00622.77
7.4.30.0000.01816.60
7.4.00.0100.00314.80
7.3.330.0030.00313.18
7.3.320.0060.00012.91
7.3.310.0030.00616.24
7.3.300.0000.00716.00
7.3.290.0000.01316.15
7.3.280.0070.00816.18
7.3.270.0060.01017.40
7.3.260.0090.00916.14
7.3.250.0120.00916.33
7.3.240.0120.00416.65
7.3.230.0120.00316.39
7.3.210.0030.01316.39
7.3.200.0030.01316.43
7.3.190.0090.00916.30
7.3.180.0040.01216.25
7.3.170.0040.01116.27
7.3.160.0060.00916.54
7.3.120.0100.00714.72
7.2.330.0170.00016.56
7.2.320.0140.00716.62
7.2.310.0060.01016.57
7.2.300.0060.01016.64
7.2.290.0100.01116.38
7.2.110.0100.01116.22
7.2.100.0380.00016.35
7.2.90.0190.00916.62
7.2.80.0270.01216.52
7.2.70.0160.01316.64
7.2.60.0170.01316.63
7.2.50.0160.01616.58
7.2.40.0260.00616.96
7.2.30.0170.01016.88
7.2.20.0140.01116.54
7.2.10.0160.01217.01
7.2.00.0090.01017.95
7.1.230.0400.00015.60
7.1.220.0410.00415.66
7.1.210.0410.01315.75
7.1.200.0220.00815.79
7.1.190.0120.01215.65
7.1.180.0190.00815.78
7.1.170.0160.00815.84
7.1.160.0260.00115.86
7.1.150.0140.00615.84
7.1.140.0150.01015.59
7.1.130.0200.00715.50
7.1.120.0220.00315.83
7.1.110.0170.00815.79
7.1.100.0100.01116.95
7.1.90.0110.01415.64
7.1.80.0180.00615.94
7.1.70.0080.00816.51
7.1.60.0120.01417.69
7.1.50.0130.00816.44
7.1.40.0100.02015.79
7.1.30.0270.00515.85
7.1.20.0200.00815.92
7.1.10.0090.01415.46
7.1.00.0070.04519.18
7.0.310.0170.01015.00
7.0.300.0180.00715.36
7.0.290.0200.00615.43
7.0.280.0160.00815.16
7.0.270.0150.00815.37
7.0.260.0200.00415.43
7.0.250.0130.01015.48
7.0.240.0150.00915.35
7.0.230.0200.00515.34
7.0.220.0180.00615.12
7.0.210.0180.00615.32
7.0.200.0070.00916.13
7.0.190.0160.01215.41
7.0.180.0160.00515.13
7.0.170.0120.00815.15
7.0.160.0130.01015.43
7.0.150.0150.01115.57
7.0.140.0120.03918.60
7.0.130.0240.00315.56
7.0.120.0130.01315.31
7.0.110.0110.01415.26
7.0.100.0210.00415.47
7.0.90.0110.04417.51
7.0.80.0170.03417.67
7.0.70.0090.02617.59
7.0.60.0130.03917.70
7.0.50.0110.03517.81
7.0.40.0070.03716.74
7.0.30.0140.03516.72
7.0.20.0080.03216.71
7.0.10.0140.04316.81
7.0.00.0220.02016.57
5.6.380.0270.00514.18
5.6.370.0170.00914.38
5.6.360.0120.01214.11
5.6.350.0130.01214.45
5.6.340.0160.01314.31
5.6.330.0110.01414.43
5.6.320.0220.00414.06
5.6.310.0200.00914.39
5.6.300.0090.01614.05
5.6.290.0200.00414.51
5.6.280.0060.04517.42
5.6.270.0140.01014.67
5.6.260.0190.00713.87
5.6.250.0160.01114.34
5.6.240.0070.04717.55
5.6.230.0110.03517.54
5.6.220.0180.03917.47
5.6.210.0180.03117.49
5.6.200.0140.04317.55
5.6.190.0110.04617.66
5.6.180.0100.03417.65
5.6.170.0150.02317.48
5.6.160.0120.04717.50
5.6.150.0190.03317.63
5.6.140.0290.02217.49
5.6.130.0240.04517.49
5.6.120.0200.04517.49
5.6.110.0240.03417.46
5.6.100.0190.04617.63
5.6.90.0200.04917.55
5.6.80.0190.04517.33
5.6.70.0250.03817.37
5.6.60.0200.02117.23
5.6.50.0170.03317.32
5.6.40.0060.03717.32
5.6.30.0110.04617.29
5.6.20.0110.03617.20
5.6.10.0100.03317.43
5.6.00.0200.01817.23
5.5.380.0110.04115.78
5.5.370.0140.03815.77
5.5.360.0090.04315.80
5.5.350.0100.04315.62
5.5.340.0070.04716.09
5.5.330.0120.02615.94
5.5.320.0120.03315.88
5.5.310.0210.03415.83
5.5.300.0200.03715.90
5.5.290.0170.02915.84
5.5.280.0120.02815.96
5.5.270.0120.03616.07
5.5.260.0160.04115.78
5.5.250.0130.04015.79
5.5.240.0180.03715.68
5.5.230.0090.04215.49
5.5.220.0110.04215.55
5.5.210.0130.03915.62
5.5.200.0070.04215.54
5.5.190.0100.04415.51
5.5.180.0090.04515.55
5.5.170.0180.00714.22
5.5.160.0080.03915.62
5.5.150.0040.03715.43
5.5.140.0100.03815.69
5.5.130.0070.03715.58
5.5.120.0100.03115.70
5.5.110.0100.04115.57
5.5.100.0090.03415.62
5.5.90.0090.03015.53
5.5.80.0050.04115.46
5.5.70.0080.03715.45
5.5.60.0070.03015.53
5.5.50.0080.04315.46
5.5.40.0140.02715.33
5.5.30.0140.01715.44
5.5.20.0080.04215.62
5.5.10.0180.03815.58
5.5.00.0060.04715.55
5.4.450.0070.03515.21
5.4.440.0210.03415.22
5.4.430.0100.02815.23
5.4.420.0120.04215.23
5.4.410.0130.04415.22
5.4.400.0140.03614.98
5.4.390.0160.03715.20
5.4.380.0100.02514.98
5.4.370.0130.03514.86
5.4.360.0020.03314.93
5.4.350.0150.03614.96
5.4.340.0130.03915.06
5.4.330.0090.00711.04
5.4.320.0030.03615.18
5.4.310.0110.04015.00
5.4.300.0060.04314.96
5.4.290.0040.03515.08
5.4.280.0130.03414.91
5.4.270.0040.04415.01
5.4.260.0080.04115.03
5.4.250.0080.04514.91
5.4.240.0100.04314.93
5.4.230.0070.04115.05
5.4.220.0080.02214.91
5.4.210.0040.04714.88
5.4.200.0050.02815.06
5.4.190.0110.02015.00
5.4.180.0050.02314.84
5.4.170.0110.04115.05
5.4.160.0110.03614.94
5.4.150.0040.04514.87
5.4.140.0150.03313.52
5.4.130.0080.04013.64
5.4.120.0110.03513.55
5.4.110.0060.03813.68
5.4.100.0050.02713.75
5.4.90.0110.02413.71
5.4.80.0110.03713.71
5.4.70.0090.04013.73
5.4.60.0110.03713.79
5.4.50.0070.04313.70
5.4.40.0070.02713.59
5.4.30.0040.02613.60
5.4.20.0080.02213.78
5.4.10.0110.01713.56
5.4.00.0110.03413.45
5.3.290.0120.03812.59
5.3.280.0050.03112.54
5.3.270.0090.03212.61
5.3.260.0100.04212.48
5.3.250.0050.05112.60
5.3.240.0060.02812.52
5.3.230.0090.03512.51
5.3.220.0080.03612.54
5.3.210.0090.04112.44
5.3.200.0110.03612.44
5.3.190.0080.03912.47
5.3.180.0060.02712.49
5.3.170.0060.04212.56
5.3.160.0100.03712.54
5.3.150.0070.02812.47
5.3.140.0090.02312.56
5.3.130.0050.04512.47
5.3.120.0100.03112.52
5.3.110.0090.02212.44
5.3.100.0070.03812.22
5.3.90.0070.02612.26
5.3.80.0080.02812.25
5.3.70.0090.04012.19
5.3.60.0050.04012.18
5.3.50.0050.02912.17
5.3.40.0100.02012.10
5.3.30.0040.03012.23
5.3.20.0090.03812.09
5.3.10.0070.04011.99
5.3.00.0100.03312.08
5.2.170.0040.02510.71
5.2.160.0080.03010.72
5.2.150.0050.03510.69
5.2.140.0050.02910.82
5.2.130.0050.03510.80
5.2.120.0070.03310.74
5.2.110.0080.03210.80
5.2.100.0070.02410.77
5.2.90.0070.02310.68
5.2.80.0050.02010.79
5.2.70.0090.03210.68
5.2.60.0070.03110.66
5.2.50.0060.02710.66
5.2.40.0050.03410.71
5.2.30.0100.03010.69
5.2.20.0050.02810.60
5.2.10.0100.02310.62
5.2.00.0040.02710.46
5.1.60.0030.02810.10
5.1.50.0060.02910.19
5.1.40.0040.02910.10
5.1.30.0070.02210.29
5.1.20.0040.03210.34
5.1.10.0050.02810.23
5.1.00.0030.03310.26
5.0.50.0080.0229.46
5.0.40.0030.0259.39
5.0.30.0060.0289.29
5.0.20.0040.0179.21
5.0.10.0070.0229.27
5.0.00.0030.0319.26
4.4.90.0020.0138.96
4.4.80.0040.0198.96
4.4.70.0020.0148.96
4.4.60.0020.0208.96
4.4.50.0010.0188.96
4.4.40.0060.0168.96
4.4.30.0050.0188.96
4.4.20.0020.0208.96
4.4.10.0020.0158.96
4.4.00.0030.0288.96
4.3.110.0070.0168.96
4.3.100.0060.0088.96
4.3.90.0040.0208.96
4.3.80.0040.0198.96
4.3.70.0040.0198.96
4.3.60.0020.0188.96
4.3.50.0010.0118.96
4.3.40.0020.0308.96
4.3.30.0050.0188.96
4.3.20.0060.0158.96
4.3.10.0040.0188.96
4.3.00.0020.0208.96

preferences:
38.58 ms | 400 KiB | 5 Q