3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = ['test' => TRUE]; $json = json_encode($test); echo $json; print_r(json_decode($json));

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.0100.01018.18
8.3.50.0170.00316.24
8.3.40.0070.01418.85
8.3.30.0110.00418.54
8.3.20.0040.00418.52
8.3.10.0080.00021.83
8.3.00.0080.00019.68
8.2.180.0150.00018.16
8.2.170.0040.01122.96
8.2.160.0070.00719.21
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00020.87
8.2.120.0070.00026.35
8.2.110.0060.00321.04
8.2.100.0110.00018.04
8.2.90.0040.00419.07
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0050.00320.42
8.2.30.0000.00720.62
8.2.20.0050.00217.73
8.2.10.0080.00017.98
8.2.00.0060.00618.02
8.1.280.0140.00325.92
8.1.270.0000.00823.97
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.20
8.1.230.0040.00817.42
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00817.00
8.1.180.0080.00018.10
8.1.170.0040.00418.84
8.1.160.0030.00519.00
8.1.150.0000.00718.81
8.1.140.0000.00719.50
8.1.130.0000.00717.54
8.1.120.0040.00417.32
8.1.110.0070.00017.41
8.1.100.0050.00317.39
8.1.90.0050.00217.37
8.1.80.0040.00417.39
8.1.70.0030.00317.34
8.1.60.0000.00717.49
8.1.50.0030.00617.38
8.1.40.0030.00617.41
8.1.30.0000.00917.49
8.1.20.0000.00817.66
8.1.10.0070.00017.39
8.1.00.0000.00717.32
8.0.300.0050.00218.77
8.0.290.0060.00316.75
8.0.280.0000.00718.39
8.0.270.0030.00317.19
8.0.260.0030.00317.26
8.0.250.0000.00716.95
8.0.240.0040.00416.95
8.0.230.0000.00716.90
8.0.220.0040.00416.81
8.0.210.0000.00816.75
8.0.200.0030.00316.91
8.0.190.0000.00716.77
8.0.180.0000.00716.77
8.0.170.0000.00716.82
8.0.160.0000.00716.82
8.0.150.0030.00316.75
8.0.140.0030.00316.72
8.0.130.0030.00313.23
8.0.120.0000.00816.80
8.0.110.0070.00016.82
8.0.100.0040.00416.75
8.0.90.0020.00516.82
8.0.80.0120.00616.84
8.0.70.0070.00016.93
8.0.60.0040.00416.69
8.0.50.0040.00416.68
8.0.30.0060.01117.20
8.0.20.0090.01117.40
8.0.10.0000.00816.89
8.0.00.0100.00916.69
7.4.330.0020.00215.08
7.4.320.0060.00016.54
7.4.300.0030.00316.44
7.4.290.0070.00016.43
7.4.280.0030.00416.58
7.4.270.0030.00316.34
7.4.260.0070.00016.51
7.4.250.0070.00016.42
7.4.240.0030.00316.37
7.4.230.0060.00016.27
7.4.220.0160.00316.30
7.4.210.0060.01216.45
7.4.200.0030.00316.34
7.4.160.0100.00716.42
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0130.00716.50
7.4.120.0080.00816.44
7.4.110.0030.01416.48
7.4.100.0090.00616.59
7.4.90.0200.00516.35
7.4.80.0070.01019.39
7.4.70.0070.01016.34
7.4.60.0100.00716.38
7.4.50.0030.00716.32
7.4.40.0060.01116.51
7.4.30.0090.00816.35
7.4.10.0030.01414.88
7.4.00.0100.00714.88
7.3.330.0000.00512.98
7.3.320.0030.00313.03
7.3.310.0050.00316.30
7.3.300.0000.00716.23
7.3.290.0080.01116.18
7.3.280.0110.00716.19
7.3.270.0100.00717.40
7.3.260.0110.00716.21
7.3.250.0120.00816.36
7.3.240.0080.01216.26
7.3.230.0110.00616.57
7.3.210.0120.00416.40
7.3.200.0110.00716.28
7.3.190.0070.00916.30
7.3.180.0030.01216.20
7.3.170.0100.00616.60
7.3.160.0030.01316.37
7.3.130.0090.00914.87
7.3.120.0120.00714.97
7.3.110.0080.00814.57
7.3.100.0030.01014.85
7.3.90.0050.01114.71
7.3.80.0030.00914.70
7.3.70.0070.00914.74
7.3.60.0030.01214.80
7.3.50.0040.01114.60
7.3.40.0020.01114.73
7.3.30.0070.00814.66
7.3.20.0070.00716.67
7.3.10.0070.00616.62
7.3.00.0000.01316.47
7.2.330.0070.01016.59
7.2.320.0100.01316.74
7.2.310.0110.00816.63
7.2.300.0130.00316.47
7.2.290.0130.00316.58
7.2.260.0090.00915.21
7.2.250.0070.01015.00
7.2.240.0030.01414.97
7.2.230.0040.01415.01
7.2.220.0090.00715.01
7.2.210.0020.01015.11
7.2.200.0080.00815.00
7.2.190.0050.01015.02
7.2.180.0080.00615.04
7.2.170.0030.01014.93
7.2.160.0070.00714.85
7.2.150.0060.00316.81
7.2.140.0070.01016.91
7.2.130.0060.00916.59
7.2.120.0000.00916.71
7.2.110.0000.01316.89
7.2.100.0000.01416.89
7.2.90.0120.00316.68
7.2.80.0030.01516.75
7.2.70.0090.00616.71
7.2.60.0040.01116.90
7.2.50.0060.00916.88
7.2.40.0070.00716.90
7.2.30.0040.00916.79
7.2.20.0110.00316.63
7.2.10.0030.00816.88
7.2.00.0040.00918.05
7.1.330.0020.01315.90
7.1.320.0100.00515.86
7.1.310.0100.00315.78
7.1.300.0070.00715.80
7.1.290.0060.00915.67
7.1.280.0060.00615.67
7.1.270.0060.00915.81
7.1.260.0030.01115.84
7.1.250.0070.00415.82
7.1.240.0000.00815.76
7.1.230.0090.00315.81
7.1.220.0040.00415.82
7.1.210.0000.01715.53
7.1.200.0050.00815.66
7.1.190.0060.00615.76
7.1.180.0060.00615.81
7.1.170.0060.01015.78
7.1.160.0040.01115.82
7.1.150.0030.00615.57
7.1.140.0060.00615.80
7.1.130.0070.00415.48
7.1.120.0070.01015.83
7.1.110.0070.00715.65
7.1.100.0060.00616.79
7.1.90.0040.01115.94
7.1.80.0030.00615.82
7.1.70.0060.00716.55
7.1.60.0080.01117.59
7.1.50.0050.00515.93
7.1.40.0040.00715.51
7.1.30.0080.00415.89
7.1.20.0040.01115.86
7.1.10.0060.00615.84
7.1.00.0040.04218.98
7.0.330.0060.00915.33
7.0.320.0000.00815.34
7.0.310.0000.01515.34
7.0.300.0100.00015.18
7.0.290.0040.01115.50
7.0.280.0080.00515.46
7.0.270.0070.00715.57
7.0.260.0030.00615.38
7.0.250.0040.01115.45
7.0.240.0000.01215.47
7.0.230.0040.00415.46
7.0.220.0060.00915.57
7.0.210.0070.01015.52
7.0.200.0060.00615.94
7.0.190.0030.00615.03
7.0.180.0100.00015.32
7.0.170.0070.00715.40
7.0.160.0100.00315.48
7.0.150.0110.00015.58
7.0.140.0000.01015.48
7.0.130.0030.01015.36
7.0.120.0090.00015.30
7.0.110.0030.01315.41
7.0.100.0090.00415.36
7.0.90.0370.04317.66
7.0.80.0230.02117.53
7.0.70.0320.04417.57
7.0.60.0270.02717.74
7.0.50.0280.04417.96
7.0.40.0050.02816.82
7.0.30.0080.04216.68
7.0.20.0090.04716.76
7.0.10.0070.04516.73
7.0.00.0030.02816.76
5.6.400.0070.00713.80
5.6.390.0080.00414.51
5.6.380.0030.00614.67
5.6.370.0060.00314.48
5.6.360.0000.01613.94
5.6.350.0060.00614.17
5.6.340.0030.00914.34
5.6.330.0040.00414.54
5.6.320.0000.00914.39
5.6.310.0140.00314.55
5.6.300.0040.01114.32
5.6.290.0100.00013.79
5.6.280.0040.03817.57
5.6.270.0030.00714.31
5.6.260.0100.00314.38
5.6.250.0060.00613.96
5.6.240.0030.03717.45
5.6.230.0160.03917.37
5.6.220.0120.04417.38
5.6.210.0080.03817.59
5.6.200.0050.03217.59
5.6.190.0030.02817.78
5.6.180.0090.02017.71
5.6.170.0080.04317.64
5.6.160.0100.04017.72
5.6.150.0090.03017.53
5.6.140.0050.04317.60
5.6.130.0070.04017.55
5.6.120.0100.04017.79
5.6.110.0060.02717.79
5.6.100.0080.02717.64
5.6.90.0030.03017.63
5.6.80.0000.02817.18
5.6.70.0100.03517.49
5.6.60.0060.02617.32
5.6.50.0070.03517.07
5.6.40.0150.01717.43
5.6.30.0040.02317.29
5.6.20.0030.02417.29
5.6.10.0030.02317.22
5.6.00.0100.02217.18
5.5.380.0030.03717.30
5.5.370.0110.04117.33
5.5.360.0130.04117.30
5.5.350.0030.04517.32
5.5.340.0070.04317.39
5.5.330.0030.04317.46
5.5.320.0050.04717.52
5.5.310.0080.04517.68
5.5.300.0080.02417.54
5.5.290.0050.03517.54
5.5.280.0200.02017.61
5.5.270.0040.02817.40
5.5.260.0030.02917.46
5.5.250.0020.03017.56
5.5.240.0020.04017.06
5.5.230.0070.02317.15
5.5.220.0050.02517.07
5.5.210.0020.02417.10
5.5.200.0060.02017.21
5.5.190.0020.03017.18
5.5.180.0030.02517.19
5.5.170.0100.00714.16
5.5.160.0030.02617.19
5.5.150.0050.02017.16
5.5.140.0060.02017.21
5.5.130.0060.02117.29
5.5.120.0080.02217.21
5.5.110.0050.04217.23
5.5.100.0030.03517.07
5.5.90.0060.02817.08
5.5.80.0070.02216.97
5.5.70.0000.02616.99
5.5.60.0040.02417.10
5.5.50.0030.02316.94
5.5.40.0050.02317.04
5.5.30.0050.02016.94
5.5.20.0050.03417.12
5.5.10.0050.02617.13
5.5.00.0030.02517.14

preferences:
74.53 ms | 401 KiB | 5 Q