3v4l.org

run code in 300+ PHP versions simultaneously
<?php $js = '{ 1, $user:John Doe, $dgd:bra }'; print_r(json_decode($js, ARRAY));

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)
5.4.320.2000.04019.31
5.4.310.1800.03319.24
5.4.300.1870.05019.21
5.4.290.1700.04019.18
5.4.280.1930.04019.14
5.4.270.1730.03719.07
5.4.260.2030.04018.97
5.4.250.1870.02718.94
5.4.240.1770.03719.30
5.4.230.1730.03718.98
5.4.220.1770.03018.97
5.4.210.1700.04019.23
5.4.200.2070.03719.16
5.4.190.2170.03719.15
5.4.180.2130.03718.83
5.4.170.1900.03719.22
5.4.160.2000.04319.14
5.4.150.2000.04718.97
5.4.140.2000.04316.36
5.4.130.2100.04016.66
5.4.120.1730.03716.31
5.4.110.2030.04316.56
5.4.100.1930.03716.40
5.4.90.2030.04016.43
5.4.80.1870.03316.57
5.4.70.1730.03716.35
5.4.60.1830.02716.51
5.4.50.2100.03016.33
5.4.40.2000.03016.51
5.4.30.1970.04016.50
5.4.20.2070.04316.33
5.4.10.2000.02716.41
5.4.00.1830.03015.79
5.3.290.2030.04314.50
5.3.280.2070.03714.45
5.3.270.1770.04014.45
5.3.260.1930.04014.63
5.3.250.2030.04714.41
5.3.240.1730.04014.63
5.3.230.2030.04014.45
5.3.220.1800.03314.52
5.3.210.1700.04314.43
5.3.200.1970.05014.61
5.3.190.2000.04314.59
5.3.180.1700.04014.58
5.3.170.2000.04714.58
5.3.160.1770.03314.66
5.3.150.2000.04314.43
5.3.140.1970.04314.41
5.3.130.2070.04014.41
5.3.120.1770.03714.50
5.3.110.2030.04314.60
5.3.100.1730.03714.06
5.3.90.1730.03714.07
5.3.80.1730.03714.11
5.3.70.1970.02713.85
5.3.60.1770.03713.86
5.3.50.2130.03713.89
5.3.40.1900.03014.04
5.3.30.1930.03313.92
5.3.20.2130.04013.56
5.3.10.2000.03713.46
5.3.00.1770.04013.48
5.2.170.1630.03311.19
5.2.160.1500.03011.19
5.2.150.1970.03311.09
5.2.140.0600.03710.98
5.2.130.0130.02311.26
5.2.120.0030.04011.26
5.2.110.0070.02311.12
5.2.100.0470.03311.15
5.2.90.1530.03311.13
5.2.80.1600.03310.96
5.2.70.1770.03010.95
5.2.60.1630.02310.98
5.2.50.1630.03310.95
5.2.40.1370.02710.82
5.2.30.1200.03310.91
5.2.20.1370.02711.01
5.2.10.1300.03710.73
5.2.00.1230.03010.79
5.1.60.1100.0309.91
5.1.50.1370.02010.00
5.1.40.1330.0279.99
5.1.30.1430.03010.29
5.1.20.1600.02710.51
5.1.10.1600.0309.99
5.1.00.1430.03710.07
5.0.50.0770.0308.63
5.0.40.0700.0238.34
5.0.30.0730.0478.11
5.0.20.0600.0208.25
5.0.10.0670.0278.24
5.0.00.0770.0438.15
4.4.90.0630.0237.59
4.4.80.0600.0137.59
4.4.70.0570.0207.59
4.4.60.0730.0237.59
4.4.50.0670.0137.59
4.4.40.0700.0437.59
4.4.30.0570.0177.59
4.4.20.0670.0137.59
4.4.10.0570.0137.59
4.4.00.0600.0277.59
4.3.110.0930.0207.59
4.3.100.0700.0177.59
4.3.90.0770.0207.59
4.3.80.0700.0177.59
4.3.70.0870.0207.59
4.3.60.0900.0207.59
4.3.50.0930.0237.59
4.3.40.0870.0377.59
4.3.30.0500.0237.59
4.3.20.0470.0207.59
4.3.10.0400.0207.59
4.3.00.0400.0107.59

preferences:
143.3 ms | 1394 KiB | 7 Q