3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ 'true', null, '123', 123, json_encode('1/2'), json_encode('База данни грешка') ]; foreach ($tests as $test) { echo var_export(json_decode($test, true)) . "\n---\n"; }

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.140.0090.01117.65
8.4.130.0060.00317.94
8.4.120.0060.01020.44
8.4.110.0060.01018.71
8.4.100.0100.01017.95
8.4.90.0130.00620.52
8.4.80.0040.00418.79
8.4.70.0140.00918.07
8.4.60.0120.00918.68
8.4.50.0110.00918.80
8.4.40.0060.00920.53
8.4.30.0160.00319.01
8.4.20.0100.01022.23
8.4.10.0100.01021.30
8.3.270.0090.01016.48
8.3.260.0060.01216.67
8.3.250.0140.00618.90
8.3.240.0110.00816.84
8.3.230.0170.00416.79
8.3.220.0040.00319.03
8.3.210.0110.00719.13
8.3.200.0060.00316.48
8.3.190.0080.00217.16
8.3.180.0100.00417.30
8.3.170.0110.00722.86
8.3.160.0100.01117.01
8.3.150.0140.00317.41
8.3.140.0030.00916.62
8.3.130.0040.01518.41
8.3.120.0060.00320.81
8.3.110.0100.00616.91
8.3.100.0050.00316.68
8.3.90.0150.00426.77
8.3.80.0060.00319.36
8.3.70.0120.00418.43
8.3.60.0100.00316.75
8.3.50.0080.01223.74
8.3.40.0160.00322.05
8.3.30.0120.00318.68
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0090.01116.76
8.2.280.0150.00418.38
8.2.270.0100.01417.17
8.2.260.0050.00320.04
8.2.250.0060.00316.71
8.2.240.0110.00717.23
8.2.230.0090.00020.94
8.2.220.0040.00424.06
8.2.210.0100.01026.77
8.2.200.0060.00318.88
8.2.190.0110.00418.38
8.2.180.0110.00425.92
8.2.170.0070.00718.96
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0030.00526.16
8.2.120.0040.00426.35
8.2.110.0070.00321.05
8.2.100.0090.00318.03
8.2.90.0060.00320.42
8.2.80.0080.00020.55
8.2.70.0040.00417.50
8.2.60.0040.00417.79
8.2.50.0060.00318.07
8.2.40.0040.00418.23
8.2.30.0040.00418.11
8.2.20.0040.00417.98
8.2.10.0040.00419.30
8.2.00.0070.00019.14
8.1.330.0130.00616.59
8.1.320.0140.00616.29
8.1.310.0070.00718.55
8.1.300.0080.00018.28
8.1.290.0070.00330.84
8.1.280.0120.00625.92
8.1.270.0000.00920.58
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0080.00022.14
8.1.230.0110.00020.97
8.1.220.0040.00417.74
8.1.210.0040.00418.97
8.1.200.0030.00617.23
8.1.190.0060.00317.13
8.1.180.0050.00318.10
8.1.170.0030.00618.64
8.1.160.0070.00018.79
8.1.150.0070.00018.80
8.1.140.0060.00318.84
8.1.130.0000.00720.03
8.1.120.0040.00417.45
8.1.110.0050.00317.40
8.1.100.0030.00617.44
8.1.90.0040.00417.50
8.1.80.0030.00617.43
8.1.70.0000.00717.45
8.1.60.0040.00417.45
8.1.50.0000.00717.58
8.1.40.0000.00817.38
8.1.30.0040.00417.66
8.1.20.0040.00417.47
8.1.10.0000.00817.54
8.1.00.0000.00817.32
8.0.300.0040.00420.09
8.0.290.0000.00816.75
8.0.280.0030.00320.09
8.0.270.0040.00417.99
8.0.260.0040.00418.30
8.0.250.0000.00716.92
8.0.240.0040.00416.83
8.0.230.0070.00016.89
8.0.220.0040.00416.77
8.0.210.0000.00716.91
8.0.200.0060.00316.83
8.0.190.0000.00716.96
8.0.180.0040.00416.83
8.0.170.0030.00616.75
8.0.160.0040.00416.93
8.0.150.0070.00016.70
8.0.140.0070.00016.84
8.0.130.0000.00613.27
8.0.120.0040.00416.82
8.0.110.0050.00216.90
8.0.100.0000.00716.76
8.0.90.0050.00216.85
8.0.80.0090.00716.84
8.0.70.0000.00716.70
8.0.60.0040.00416.66
8.0.50.0040.00416.67
8.0.30.0120.00417.18
8.0.20.0090.01117.18
8.0.10.0000.00817.07
8.0.00.0220.00316.63
7.4.330.0000.00415.55
7.4.320.0030.00316.54
7.4.300.0030.00316.59
7.4.290.0040.00416.50
7.4.280.0050.00316.61
7.4.270.0050.00216.64
7.4.260.0000.00613.21
7.4.250.0050.00316.60
7.4.240.0080.00016.55
7.4.230.0000.00716.57
7.4.220.0060.00116.53
7.4.210.0090.00816.57
7.4.200.0000.00716.34
7.4.130.0090.01116.54
7.4.120.0110.00616.34
7.4.110.0110.00616.50
7.4.100.0150.00916.41
7.4.90.0180.00716.02
7.4.80.0100.01416.36
7.4.70.0120.00816.32
7.4.60.0250.02016.34
7.4.50.0120.00616.34
7.4.40.0180.00016.56
7.4.30.0080.01316.18
7.4.20.0130.00616.26
7.4.10.0110.00916.32
7.4.00.0160.00716.57
7.3.330.0040.00416.24
7.3.320.0040.00413.13
7.3.310.0030.00316.09
7.3.300.0030.00316.29
7.3.290.0090.00916.26
7.3.280.0060.00916.29
7.3.260.0140.00316.28
7.3.230.0090.00916.47
7.3.220.0230.01716.26
7.3.210.0250.00316.21
7.3.200.0180.00516.39
7.3.190.0170.00716.25
7.3.180.0090.00816.23
7.3.170.0140.00816.27
7.3.160.0130.00616.45
7.3.150.0090.00916.51
7.3.140.0050.01516.22
7.3.130.0040.01616.29
7.3.120.0070.01216.21
7.3.110.0070.01016.51
7.3.100.0070.01316.28
7.3.90.0030.01716.55
7.3.80.0100.00716.39
7.3.70.0250.02616.47
7.3.60.0110.01116.30
7.3.50.0120.00616.17
7.3.40.0140.00716.28
7.3.30.0130.00616.34
7.3.20.0090.00916.33
7.3.10.0100.01316.31
7.3.00.0050.01116.41
7.2.330.0130.01016.18
7.2.320.0190.00616.52
7.2.310.0120.00616.63
7.2.300.0070.01516.63
7.2.290.0060.01216.64
7.2.280.0100.00716.35
7.2.270.0130.01316.62
7.2.260.0070.01416.59
7.2.250.0030.01716.70
7.2.240.0130.01016.78
7.2.230.0170.00616.48
7.2.220.0110.00716.42
7.2.210.0130.01316.43
7.2.200.0130.01016.69
7.2.190.0080.01116.77
7.2.180.0070.01316.46
7.2.170.0090.01216.49
7.2.160.0150.00916.60
7.2.150.0060.01216.60
7.2.140.0070.01116.51
7.2.130.0030.01616.65
7.2.120.0140.00516.58
7.2.110.0090.00916.50
7.2.100.0070.01116.52
7.2.90.0160.00316.38
7.2.80.0030.01616.78
7.2.70.0040.01616.59
7.2.60.0130.01016.53
7.2.50.0060.02016.56
7.2.40.0130.01416.51
7.2.30.0150.00716.59
7.2.20.0150.00916.70
7.2.10.0060.01816.66
7.2.00.0190.00016.63

preferences:
139.28 ms | 403 KiB | 5 Q