3v4l.org

run code in 300+ PHP versions simultaneously
<?php $someJson = '{"":""}'; $myObject = json_decode($someJSON); $newJson = json_encode($myObject); var_dump($someJson, $newJson, $someJson === $newJson); $myObject = (object)[""=>""]; $serialized = serialize($myObject); var_dump($myObject, $serialized); $unserialized = unserialize($serialized); var_dump($unserialized);

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.0060.00918.56
8.3.50.0080.01022.11
8.3.40.0130.00318.89
8.3.30.0040.01218.71
8.3.20.0050.00220.32
8.3.10.0050.00320.52
8.3.00.0040.00421.90
8.2.180.0110.00418.41
8.2.170.0160.00022.96
8.2.160.0170.00322.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.14
8.2.120.0090.00026.35
8.2.110.0090.00019.30
8.2.100.0040.00818.04
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0080.00017.93
8.2.50.0050.00318.09
8.2.40.0070.00020.38
8.2.30.0000.00819.37
8.2.20.0040.00417.68
8.2.10.0040.00418.12
8.2.00.0000.00718.09
8.1.280.0000.01525.92
8.1.270.0030.00522.05
8.1.260.0080.00028.09
8.1.250.0000.00828.09
8.1.240.0000.00822.61
8.1.230.0000.01117.83
8.1.220.0080.00017.77
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0030.00518.61
8.1.160.0000.00720.74
8.1.150.0040.00418.87
8.1.140.0000.00919.54
8.1.130.0000.00817.55
8.1.120.0070.00017.38
8.1.110.0000.00817.31
8.1.100.0040.00417.30
8.1.90.0000.00717.30
8.1.80.0000.00717.30
8.1.70.0000.00817.46
8.1.60.0000.00817.41
8.1.50.0060.00317.34
8.1.40.0030.00517.44
8.1.30.0040.00417.63
8.1.20.0020.00517.43
8.1.10.0000.00817.43
8.1.00.0040.00417.30
8.0.300.0000.00718.77
8.0.290.0050.00316.63
8.0.280.0000.00718.38
8.0.270.0030.00317.18
8.0.260.0030.00617.31
8.0.250.0000.00716.98
8.0.240.0000.00816.89
8.0.230.0000.00816.97
8.0.220.0070.00016.75
8.0.210.0030.00316.91
8.0.200.0000.00717.02
8.0.190.0000.00716.82
8.0.180.0070.00016.79
8.0.170.0030.00516.97
8.0.160.0080.00016.98
8.0.150.0040.00416.85
8.0.140.0070.00416.71
8.0.130.0050.00013.33
8.0.120.0000.00816.76
8.0.110.0040.00416.87
8.0.100.0000.00716.98
8.0.90.0040.00416.75
8.0.80.0030.01216.80
8.0.70.0040.00416.76
8.0.60.0050.00216.79
8.0.50.0080.00016.82
8.0.30.0000.01917.14
8.0.20.0090.01017.40
8.0.10.0070.00017.08
8.0.00.0080.01016.74
7.4.330.0020.00216.84
7.4.320.0060.00016.57
7.4.300.0030.00316.51
7.4.290.0070.00016.61
7.4.280.0070.00016.50
7.4.270.0070.00016.49
7.4.260.0080.00016.57
7.4.250.0040.00416.57
7.4.240.0040.00416.51
7.4.230.0070.00016.68
7.4.220.0100.01016.60
7.4.210.0070.00716.70
7.4.200.0030.00616.52
7.4.160.0150.00616.57
7.4.150.0090.00917.40
7.4.140.0160.00917.86
7.4.130.0070.01316.43
7.4.120.0120.00816.43
7.4.110.0060.01216.62
7.4.100.0190.00016.63
7.4.90.0110.00716.46
7.4.80.0110.01019.39
7.4.70.0030.01316.43
7.4.60.0130.01016.47
7.4.50.0100.00716.45
7.4.40.0110.00716.48
7.4.30.0170.00016.53
7.4.00.0070.01114.82
7.3.330.0020.00213.13
7.3.320.0000.00613.20
7.3.310.0000.00716.22
7.3.300.0030.00316.29
7.3.290.0040.01116.31
7.3.280.0080.01016.23
7.3.270.0030.01517.40
7.3.260.0140.00316.37
7.3.250.0080.00916.31
7.3.240.0060.01116.23
7.3.230.0000.01716.60
7.3.210.0060.00916.43
7.3.200.0100.00716.67
7.3.190.0060.00916.43
7.3.180.0120.00616.21
7.3.170.0080.00816.38
7.3.160.0060.01016.30
7.3.10.0080.00816.56
7.3.00.0030.01316.59
7.2.330.0120.00616.67
7.2.320.0190.00916.69
7.2.310.0170.00016.33
7.2.300.0030.01516.63
7.2.290.0050.01116.67
7.2.130.0100.00716.82
7.2.120.0000.01816.81
7.2.110.0120.00616.85
7.2.100.0070.01016.96
7.2.90.0030.01016.91
7.2.80.0070.00716.89
7.2.70.0030.00716.85
7.2.60.0080.00816.70
7.2.50.0110.00416.75
7.2.40.0030.01316.75
7.2.30.0060.00616.93
7.2.20.0040.01116.78
7.2.10.0060.00316.65
7.2.00.0030.00716.74
7.1.250.0060.00915.56
7.1.200.0040.00415.89
7.1.100.0100.00718.16
7.1.70.0040.00417.02
7.1.60.0000.02519.19
7.1.50.0000.02216.82
7.1.00.0030.07722.31
7.0.200.0400.00314.73
7.0.90.0600.04019.89
7.0.80.0400.07719.84
7.0.70.0400.05020.11
7.0.60.0670.07719.96
7.0.50.0570.07720.38
7.0.40.0070.08020.14
7.0.30.0100.07720.10
7.0.20.0170.08020.14
7.0.10.0000.08720.07
7.0.00.0000.05720.05
5.6.280.0100.06720.81
5.6.240.0100.05720.62
5.6.230.0100.07320.71
5.6.220.0000.08320.56
5.6.210.0070.08020.55
5.6.200.0030.05721.06
5.6.190.0130.06321.01
5.6.180.0130.08020.95
5.6.170.0030.09021.01
5.6.160.0030.08020.93
5.6.150.0030.08721.17
5.6.140.0000.05021.00
5.6.130.0030.08321.09
5.6.120.0030.04721.07
5.6.110.0070.09021.16
5.6.100.0030.05021.02
5.6.90.0100.06021.09
5.6.80.0030.08020.46
5.6.70.0070.03720.43
5.6.60.0000.08720.40
5.6.50.0030.05020.55
5.6.40.0100.04320.38
5.6.30.0030.05020.45
5.6.20.0030.06320.41
5.6.10.0100.07720.30
5.6.00.0030.04320.46
5.5.380.0070.08020.56
5.5.370.0100.03720.36
5.5.360.0070.08720.32
5.5.350.0170.07320.41
5.5.340.0100.07020.87
5.5.330.0130.09020.91
5.5.320.0200.07020.92
5.5.310.0070.05020.86
5.5.300.0070.08320.87
5.5.290.0030.07320.63
5.5.280.0100.08320.91
5.5.270.0000.06020.77
5.5.260.0070.08720.60
5.5.250.0030.07720.43
5.5.240.0070.04720.21
5.5.230.0100.07020.25
5.5.220.0200.06020.29
5.5.210.0070.08020.24
5.5.200.0030.05320.24
5.5.190.0100.07720.12
5.5.180.0000.05720.23
5.5.160.0000.08320.28
5.5.150.0030.04720.10
5.5.140.0030.06020.11
5.5.130.0100.07320.13
5.5.120.0200.06720.23
5.5.110.0100.05020.26
5.5.100.0100.04720.09
5.5.90.0100.07020.05
5.5.80.0000.05719.97
5.5.70.0170.05720.08
5.5.60.0100.04020.13
5.5.50.0070.04720.07
5.5.40.0100.07320.14
5.5.30.0070.06020.13
5.5.20.0100.07320.13
5.5.10.0030.06720.12
5.5.00.0130.09020.00

preferences:
60.45 ms | 401 KiB | 5 Q