3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['drupal/core' => TRUE]; var_dump(json_encode($a)); var_dump(json_encode($a, JSON_UNESCAPED_SLASHES)); var_dump(json_decode(json_encode($a))); var_dump(json_decode(json_encode($a, JSON_UNESCAPED_SLASHES)));

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.10.0000.01623.79
8.3.140.0000.00817.25
8.3.130.0030.01418.22
8.3.120.0030.00618.91
8.3.110.0140.00320.94
8.3.100.0100.00724.06
8.3.90.0040.00426.77
8.3.80.0090.00018.31
8.3.70.0100.00716.63
8.3.60.0140.00016.50
8.3.50.0070.01116.33
8.3.40.0030.01721.85
8.3.30.0110.00418.52
8.3.20.0060.00624.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.260.0090.00616.38
8.2.250.0050.00318.47
8.2.240.0070.00018.72
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0030.00526.77
8.2.200.0060.00318.41
8.2.190.0070.01118.54
8.2.180.0150.00425.92
8.2.170.0110.00418.79
8.2.160.0030.01022.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0080.00026.16
8.2.110.0090.00022.07
8.2.100.0120.00017.78
8.2.90.0040.00417.63
8.2.80.0000.00818.65
8.2.70.0040.00417.38
8.2.60.0040.00417.50
8.2.50.0070.00017.90
8.2.40.0050.00319.22
8.2.30.0080.00618.17
8.2.20.0080.00317.59
8.2.10.0130.00317.59
8.2.00.0090.00617.59
8.1.310.0090.00018.21
8.1.300.0040.00417.73
8.1.290.0030.00618.88
8.1.280.0120.00625.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.32
8.1.230.0090.00317.83
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00317.00
8.1.190.0030.00517.10
8.1.180.0040.00418.10
8.1.170.0000.00917.62
8.1.160.0050.00519.13
8.1.150.0130.00217.59
8.1.140.0090.00917.59
8.1.130.0080.00817.59
8.1.120.0160.00017.59
8.1.110.0120.00417.59
8.1.100.0140.00317.59
8.1.90.0080.00817.59
8.1.80.0120.00417.59
8.1.70.0070.01017.59
8.1.60.0150.00317.59
8.1.50.0170.00617.59
8.1.40.0160.00417.59
8.1.30.0140.00317.59
8.1.20.0180.00017.59
8.1.10.0120.00617.59
8.1.00.0060.01117.59
8.0.300.0070.00018.94
8.0.290.0060.00316.60
8.0.280.0080.00018.49
8.0.270.0130.00217.59
8.0.260.0100.00717.59
8.0.250.0130.00317.59
8.0.240.0110.00517.59
8.0.230.0080.00817.59
8.0.220.0080.00817.59
8.0.210.0100.00517.59
8.0.200.0110.00617.59
8.0.190.0130.00317.59
8.0.180.0120.00517.59
8.0.170.0090.00617.59
8.0.160.0120.00417.59
8.0.150.0170.00017.59
8.0.140.0170.00017.59
8.0.130.0030.01117.59
8.0.120.0080.00817.59
8.0.110.0150.00317.59
8.0.100.0080.00817.59
8.0.90.0040.01217.59
8.0.80.0130.00317.59
8.0.70.0110.00517.59
8.0.60.0080.00817.59
8.0.50.0170.00017.59
8.0.30.0060.01217.59
8.0.20.0080.00817.59
8.0.10.0060.01217.59

preferences:
18.55 ms | 403 KiB | 5 Q