3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['M-am întîlnit ieri cu','fosta mea profă de matematică']; $text = implode(",",$array); // this looks good in db $json = json_encode($array); // this don't and returns error when try to decode later. var_dump($array, json_decode($json));

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.4.130.0080.00518.77
8.4.120.0120.00720.34
8.4.110.0090.01120.57
8.4.100.0120.00517.48
8.4.90.0100.01020.37
8.4.80.0120.00720.60
8.4.70.0060.00318.71
8.4.60.0130.00720.32
8.4.50.0090.01121.77
8.4.40.0040.01217.68
8.4.30.0080.01120.50
8.4.20.0040.01618.09
8.4.10.0050.00517.74
8.3.260.0110.00816.55
8.3.250.0100.00616.66
8.3.240.0120.00716.42
8.3.230.0070.00216.46
8.3.220.0100.00819.04
8.3.210.0110.00916.56
8.3.200.0060.00316.53
8.3.190.0050.00317.15
8.3.180.0070.00418.83
8.3.170.0070.01117.04
8.3.160.0180.00016.57
8.3.150.0150.00317.04
8.3.140.0160.00316.48
8.3.130.0070.00318.19
8.3.120.0110.00318.82
8.3.110.0030.00520.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0000.01016.40
8.3.70.0160.00616.63
8.3.60.0040.01916.62
8.3.50.0030.01020.06
8.3.40.0060.00918.54
8.3.30.0070.00718.49
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.290.0110.00816.93
8.2.280.0080.01018.54
8.2.270.0040.01416.41
8.2.260.0000.00817.14
8.2.250.0200.00016.55
8.2.240.0100.00718.55
8.2.230.0040.00422.58
8.2.220.0200.00037.54
8.2.210.0100.01026.77
8.2.200.0030.00616.63
8.2.190.0150.00718.29
8.2.180.0090.00625.92
8.2.170.0130.00318.76
8.2.160.0110.00622.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0060.00322.07
8.2.100.0040.00819.51
8.2.90.0000.00817.75
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0030.00517.50
8.2.50.0080.00017.98
8.2.40.0050.00218.16
8.2.30.0030.00618.00
8.2.20.0040.00420.30
8.2.10.0040.00417.55
8.2.00.0000.00719.18
8.1.330.0120.00615.96
8.1.320.0110.00917.98
8.1.310.0110.00616.53
8.1.300.0030.00618.21
8.1.290.0060.00318.88
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00323.83
8.1.230.0000.01119.09
8.1.220.0090.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00617.09
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0050.00318.82
8.1.150.0000.00718.57
8.1.140.0000.00717.38
8.1.130.0030.00320.18
8.1.120.0030.00317.45
8.1.110.0070.00017.39
8.1.100.0040.00417.40
8.1.90.0030.00317.44
8.1.80.0040.00417.39
8.1.70.0000.00717.43
8.1.60.0040.00417.53
8.1.50.0050.00317.48
8.1.40.0080.00317.45
8.1.30.0060.00317.63
8.1.20.0070.00717.43
8.1.10.0230.00317.20
8.1.00.0190.00517.25
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0000.00718.44
8.0.270.0050.00216.75
8.0.260.0070.00018.36
8.0.250.0050.00216.88
8.0.240.0040.00416.84
8.0.230.0000.00716.85
8.0.220.0030.00416.79
8.0.210.0030.00316.86
8.0.200.0030.00316.90
8.0.190.0040.00416.84
8.0.180.0000.00716.77
8.0.170.0000.00916.86
8.0.160.0040.00416.77
8.0.150.0160.01016.71
8.0.140.0140.00716.69
8.0.130.0150.00416.68
8.0.120.0120.00616.61
8.0.110.0210.00016.74
8.0.100.0230.00016.71
8.0.90.0120.00816.75
8.0.80.0180.00316.78
8.0.70.0190.00316.69
8.0.60.0190.00616.56
8.0.50.0160.00816.73
8.0.30.0230.00016.58
8.0.20.0150.00516.78
8.0.10.0200.00016.91
7.4.330.0050.00015.55
7.4.320.0030.00316.45
7.4.300.0000.00616.57
7.4.290.0000.00716.26
7.4.280.0030.00716.45
7.4.270.0210.00016.34
7.4.260.0210.00016.36
7.4.250.0220.00016.44
7.4.240.0130.00916.40
7.4.230.0170.00716.42
7.4.220.0190.00016.39
7.4.210.0150.00416.32
7.4.200.0130.00716.39
7.4.190.0130.00616.47
7.4.180.0110.00816.41
7.4.160.0140.00516.43
7.4.150.0140.00516.27
7.4.140.0160.00316.30
7.4.130.0150.00416.09
7.4.120.0200.00016.33
7.4.110.0190.00016.14
7.4.100.0200.00016.49
7.4.90.0190.00016.37
7.4.80.0160.00316.23
7.4.70.0170.00316.14
7.4.60.0160.00216.23
7.4.50.0150.00416.17
7.4.40.0220.00016.18
7.4.30.0130.00616.30
7.4.20.0150.00416.23
7.4.10.0190.00016.31
7.4.00.0150.00316.10

preferences:
29.28 ms | 403 KiB | 5 Q