3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['M-am întîlnit ieri cu','fosta mea profă de matematică']; $encoded = json_encode($array); echo "Encoded:\n" . $encoded . "\n\n"; print_r(json_decode($encoded, true));

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.130.0040.00418.51
8.3.120.0000.00820.63
8.3.110.0090.00918.22
8.3.100.0100.00016.62
8.3.90.0090.00026.77
8.3.80.0030.00616.62
8.3.70.0040.01116.63
8.3.60.0090.00618.43
8.3.50.0040.01120.01
8.3.40.0080.01220.21
8.3.30.0090.00518.59
8.3.20.0050.00224.18
8.3.10.0050.00324.66
8.3.00.0020.00526.16
8.2.250.0080.00016.74
8.2.240.0060.00916.84
8.2.230.0130.00320.94
8.2.220.0060.00324.06
8.2.210.0090.00026.77
8.2.200.0000.01316.50
8.2.190.0100.01016.58
8.2.180.0100.00725.92
8.2.170.0000.01418.95
8.2.160.0130.00622.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.96
8.2.110.0090.00520.76
8.2.100.0130.00318.49
8.2.90.0100.01119.21
8.2.80.0120.00718.28
8.2.70.0130.00718.14
8.2.60.0200.00218.26
8.2.50.0150.00318.39
8.2.40.0100.00518.44
8.2.30.0070.00518.40
8.2.20.0080.00219.55
8.2.10.0100.00318.28
8.2.00.0060.00619.28
8.1.300.0040.01116.10
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0170.00220.50
8.1.230.0140.00019.58
8.1.220.0080.00218.18
8.1.210.0120.00619.35
8.1.200.0110.00317.81
8.1.190.0140.00317.77
8.1.180.0120.00318.18
8.1.170.0060.00718.47
8.1.160.0080.00218.88
8.1.150.0100.00019.44
8.1.140.0050.00617.95
8.1.130.0150.00318.59
8.1.120.0090.00217.88
8.1.110.0080.00517.88
8.1.100.0050.00717.93
8.1.90.0080.00517.98
8.1.80.0070.00318.05
8.1.70.0040.00518.09
8.1.60.0070.00618.12
8.1.50.0080.00418.01
8.1.40.0000.01018.06
8.1.30.0040.00618.34
8.1.20.0080.00418.18
8.1.10.0060.00418.08
8.1.00.0090.00117.94
8.0.300.0060.00518.90
8.0.290.0080.00417.07
8.0.280.0040.00618.05
8.0.270.0050.00617.31
8.0.260.0050.00518.15
8.0.250.0090.00217.38
8.0.240.0070.00417.33
8.0.230.0040.00517.59
8.0.220.0090.00317.29
8.0.210.0030.00717.32
8.0.200.0070.00317.39
8.0.190.0050.00617.35
8.0.180.0050.00517.33
8.0.170.0080.00317.40
8.0.160.0060.00517.38
8.0.150.0050.00717.30
8.0.140.0110.00017.24
8.0.130.0050.00517.53
8.0.120.0090.00217.33
8.0.110.0050.00617.38
8.0.100.0050.00617.36
8.0.90.0080.00317.15
8.0.80.0080.00317.31
8.0.70.0090.00217.30
8.0.60.0070.00417.27
8.0.50.0070.00417.34
8.0.30.0080.00217.39
8.0.20.0080.00317.28
8.0.10.0060.00517.34
7.4.330.0060.00315.92
7.4.320.0040.00316.84
7.4.300.0030.00317.02
7.4.290.0040.00316.79
7.4.280.0050.00616.98
7.4.270.0010.00616.87
7.4.260.0030.00516.68
7.4.250.0070.00017.02
7.4.240.0030.00516.96
7.4.230.0040.00616.90
7.4.220.0020.00616.98
7.4.210.0040.00316.93
7.4.200.0040.00416.84
7.4.190.0060.00316.99
7.4.180.0040.00417.00
7.4.160.0060.00217.03
7.4.150.0040.00316.97
7.4.140.0020.00616.86
7.4.130.0080.00216.81
7.4.120.0040.00416.91
7.4.110.0140.00616.91
7.4.100.0160.00616.93
7.4.90.0170.00116.95
7.4.80.0100.00716.69
7.4.70.0080.01216.70
7.4.60.0160.00616.64
7.4.50.0110.00016.91
7.4.40.0090.00316.85
7.4.30.0100.00216.71
7.4.20.0070.00416.86
7.4.10.0080.00316.88
7.4.00.0060.00116.88

preferences:
26.94 ms | 403 KiB | 5 Q