3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array['a'] = "as"; $array['b'] = 1; $array['c'] = 1.13; $array['d'] = 10.08; echo json_encode($array);

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.40.0140.00318.75
8.3.30.0110.00418.71
8.3.20.0070.00019.14
8.3.10.0040.00421.81
8.3.00.0040.00420.46
8.2.170.0120.00322.96
8.2.160.0070.01020.53
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00419.35
8.2.120.0030.00626.35
8.2.110.0040.00422.08
8.2.100.0120.00017.91
8.2.90.0050.00319.21
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0110.00018.16
8.2.50.0080.00018.10
8.2.40.0000.00720.59
8.2.30.0040.00419.28
8.2.20.0050.00218.11
8.2.10.0080.00018.05
8.2.00.0000.00717.68
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00719.26
8.1.230.0070.00417.95
8.1.220.0080.00017.79
8.1.210.0070.00318.77
8.1.200.0080.00017.22
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0030.00618.90
8.1.160.0000.00718.77
8.1.150.0000.00720.20
8.1.140.0000.00719.43
8.1.130.0000.00717.39
8.1.120.0030.00317.34
8.1.110.0040.00417.32
8.1.100.0030.00317.22
8.1.90.0040.00417.33
8.1.80.0030.00517.33
8.1.70.0000.00717.23
8.1.60.0000.00817.36
8.1.50.0040.00417.41
8.1.40.0040.00417.47
8.1.30.0030.00517.52
8.1.20.0050.00217.41
8.1.10.0040.00417.46
8.1.00.0040.00417.46
8.0.300.0000.00818.77
8.0.290.0030.00616.58
8.0.280.0000.00818.32
8.0.270.0080.00017.18
8.0.260.0070.00016.80
8.0.250.0070.00016.80
8.0.240.0070.00016.93
8.0.230.0000.00716.73
8.0.220.0030.00316.77
8.0.210.0000.00616.62
8.0.200.0060.00016.68
8.0.190.0000.00816.68
8.0.180.0070.00016.71
8.0.170.0030.00316.68
8.0.160.0040.00416.73
8.0.150.0040.00416.69
8.0.140.0040.00416.62
8.0.130.0000.00613.21
8.0.120.0040.00416.70
8.0.110.0080.00016.59
8.0.100.0040.00416.55
8.0.90.0050.00216.61
8.0.80.0080.00816.71
8.0.70.0000.00716.58
8.0.60.0000.00816.65
8.0.50.0030.00616.77
8.0.30.0050.01417.03
8.0.20.0100.01117.40
8.0.10.0030.00316.87
8.0.00.0100.00616.75
7.4.330.0050.00015.55
7.4.320.0030.00316.52
7.4.300.0030.00316.44
7.4.290.0030.00516.48
7.4.280.0070.00016.34
7.4.270.0000.00616.41
7.4.260.0000.00716.51
7.4.250.0000.00816.50
7.4.240.0030.00916.49
7.4.230.0000.00716.27
7.4.220.0150.00616.41
7.4.210.0040.01116.33
7.4.200.0070.00016.51
7.4.160.0080.00816.35
7.4.150.0140.01317.40
7.4.140.0070.01217.86
7.4.130.0070.01216.31
7.4.120.0120.00916.41
7.4.110.0090.00816.42
7.4.100.0130.00316.26
7.4.90.0080.00816.36
7.4.80.0140.00419.39
7.4.70.0030.01316.44
7.4.60.0110.00416.57
7.4.50.0060.01016.58
7.4.40.0040.01116.49
7.4.30.0130.00516.50
7.4.00.0070.01015.04
7.3.330.0000.00712.92
7.3.320.0050.00013.03
7.3.310.0000.00716.04
7.3.300.0040.00416.21
7.3.290.0120.00516.18
7.3.280.0100.00716.18
7.3.270.0100.00717.40
7.3.260.0110.00516.42
7.3.250.0120.00816.23
7.3.240.0100.00916.20
7.3.230.0100.00716.41
7.3.210.0070.01316.50
7.3.200.0150.01116.30
7.3.190.0070.00716.19
7.3.180.0110.00816.43
7.3.170.0070.01016.24
7.3.160.0150.00316.64
7.2.330.0000.01716.53
7.2.320.0110.00616.25
7.2.310.0000.01716.64
7.2.300.0090.01516.29
7.2.290.0080.00916.31
7.2.60.0090.00316.67
7.2.50.0070.00416.80
7.1.200.0120.00015.64
7.1.70.0040.00417.22
7.1.60.0000.01216.89
7.1.50.0120.00016.95
7.1.40.0030.00916.51
7.1.30.0040.00716.54
7.1.20.0070.00716.71
7.1.10.0000.00816.49
7.1.00.0060.00316.63
7.0.200.0000.00916.86
7.0.190.0040.00416.63
7.0.180.0000.00716.19
7.0.170.0080.00316.34
7.0.160.0070.00416.29
7.0.150.0000.00816.26
7.0.140.0000.01416.12
7.0.130.0030.00616.56
7.0.120.0040.00416.48
7.0.110.0040.00416.13
7.0.100.0000.00716.45
7.0.90.0030.00716.36
7.0.80.0000.01016.45
7.0.70.0000.00816.44
7.0.60.0030.00516.23
7.0.50.0030.00716.44
7.0.40.0030.00715.40
7.0.30.0000.01015.40
7.0.20.0030.00515.40
7.0.10.0030.00315.40
7.0.00.0000.00815.40
5.6.300.0000.04920.66
5.6.290.0030.05820.99
5.6.280.0000.04820.85
5.6.270.0000.04420.86
5.6.260.0000.04820.83
5.6.250.0070.04320.81
5.6.240.0100.03720.75
5.6.230.0000.04820.89
5.6.220.0450.03220.75
5.6.210.0070.04321.00
5.6.200.0030.05220.84
5.6.190.0330.04021.00
5.6.180.0030.05420.86
5.6.170.0230.03320.81
5.6.160.0060.03620.84
5.6.150.0000.06021.01
5.6.140.0270.04421.00
5.6.130.0000.05220.89
5.6.120.0030.04220.92
5.6.110.0030.05820.69
5.6.100.0040.04620.88
5.6.90.0070.03820.87
5.6.80.0070.03720.28
5.6.70.0100.05020.09
5.6.60.0000.04620.18
5.6.50.0030.04620.18
5.6.40.0030.04420.25
5.6.30.0030.04420.29
5.6.20.0000.04120.09
5.6.10.0030.04020.29
5.6.00.0030.04020.35

preferences:
70.09 ms | 400 KiB | 5 Q