3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'value' => 123, 'value2'=>1234567890123456 ); $enc = json_encode($data); $dec = json_decode( $enc, true ); var_dump( ($data['value2'] === $dec['value2']) );

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.0070.01118.30
8.3.50.0100.00316.63
8.3.40.0070.00718.61
8.3.30.0140.00018.79
8.3.20.0040.00420.34
8.3.10.0040.00423.56
8.3.00.0040.00420.88
8.2.180.0070.01418.54
8.2.170.0070.00722.96
8.2.160.0070.01322.25
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0110.00422.16
8.2.120.0000.00826.35
8.2.110.0030.00620.52
8.2.100.0120.00017.78
8.2.90.0000.00819.18
8.2.80.0000.00917.97
8.2.70.0080.00017.38
8.2.60.0040.00418.04
8.2.50.0060.00318.10
8.2.40.0000.00820.55
8.2.30.0020.00521.04
8.2.20.0000.00717.98
8.2.10.0050.00318.12
8.2.00.0050.00318.14
8.1.280.0060.01325.92
8.1.270.0070.00022.06
8.1.260.0000.00826.35
8.1.250.0100.00028.09
8.1.240.0030.00622.09
8.1.230.0080.00419.20
8.1.220.0030.00517.77
8.1.210.0000.00818.77
8.1.200.0090.00417.22
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0080.00018.54
8.1.160.0000.00719.06
8.1.150.0040.00420.61
8.1.140.0040.00419.42
8.1.130.0000.00718.82
8.1.120.0040.00417.31
8.1.110.0060.00317.43
8.1.100.0060.00317.41
8.1.90.0040.00417.41
8.1.80.0050.00217.25
8.1.70.0030.00317.31
8.1.60.0040.00417.45
8.1.50.0000.00817.42
8.1.40.0000.00817.34
8.1.30.0000.00817.66
8.1.20.0070.00017.50
8.1.10.0040.00417.58
8.1.00.0080.00017.49
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0040.00418.38
8.0.270.0000.00717.23
8.0.260.0000.00616.71
8.0.250.0000.00716.85
8.0.240.0000.00716.71
8.0.230.0040.00416.76
8.0.220.0000.00716.82
8.0.210.0080.00016.71
8.0.200.0030.00316.84
8.0.190.0000.00716.89
8.0.180.0040.00716.73
8.0.170.0030.00316.78
8.0.160.0100.00016.81
8.0.150.0080.00016.74
8.0.140.0050.00316.84
8.0.130.0040.00413.22
8.0.120.0000.00816.83
8.0.110.0040.00416.76
8.0.100.0050.00216.88
8.0.90.0070.00016.65
8.0.80.0240.00416.77
8.0.70.0040.00416.72
8.0.60.0070.00016.74
8.0.50.0040.00416.81
8.0.30.0120.00617.21
8.0.20.0110.01017.40
8.0.10.0070.00016.92
8.0.00.0060.01316.72
7.4.330.0000.00515.55
7.4.320.0030.00316.61
7.4.300.0070.00016.43
7.4.290.0050.00516.60
7.4.280.0040.00416.41
7.4.270.0000.00716.61
7.4.260.0000.00716.48
7.4.250.0070.00016.54
7.4.240.0030.00316.61
7.4.230.0030.00316.53
7.4.220.0070.01316.52
7.4.210.0070.00716.54
7.4.200.0020.00516.70
7.4.160.0060.01116.58
7.4.150.0130.00317.40
7.4.140.0080.00917.86
7.4.130.0090.01216.58
7.4.120.0100.00916.46
7.3.330.0000.00612.98
7.3.320.0030.00313.16
7.3.310.0040.00416.09
7.3.300.0030.00316.27
7.3.290.0080.00816.18
7.3.280.0080.00816.18
7.3.270.0150.00317.40
7.3.260.0090.00916.35
7.3.250.0120.00816.38
7.3.240.0100.01116.36
7.0.180.0500.01014.39

preferences:
33.29 ms | 401 KiB | 5 Q