3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['easd', 'asda', 'asdasd', 'asdas']; json_encode($arr);

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.0110.01116.63
8.3.50.0070.01018.17
8.3.40.0150.00318.58
8.3.30.0100.00718.34
8.3.20.0070.00023.51
8.3.10.0040.00421.77
8.3.00.0090.00019.25
8.2.180.0100.01018.16
8.2.170.0180.00022.96
8.2.160.0040.01120.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00719.64
8.2.120.0040.00426.35
8.2.110.0000.01020.58
8.2.100.0040.00819.11
8.2.90.0040.00417.63
8.2.80.0030.00618.73
8.2.70.0080.00018.04
8.2.60.0050.00317.91
8.2.50.0000.00818.10
8.2.40.0050.00220.47
8.2.30.0000.00719.16
8.2.20.0040.00417.98
8.2.10.0050.00217.86
8.2.00.0040.00417.48
8.1.280.0070.01025.92
8.1.270.0070.00020.15
8.1.260.0080.00026.35
8.1.250.0150.00028.09
8.1.240.0050.00523.92
8.1.230.0080.00419.16
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0050.00317.00
8.1.180.0060.00318.10
8.1.170.0000.00818.82
8.1.160.0040.00418.80
8.1.150.0030.00320.29
8.1.140.0000.00719.44
8.1.130.0000.00719.05
8.1.120.0000.00717.39
8.1.110.0040.00417.43
8.1.100.0080.00017.34
8.1.90.0040.00317.41
8.1.80.0040.00417.29
8.1.70.0040.00417.27
8.1.60.0050.00217.55
8.1.50.0040.00417.47
8.1.40.0040.00417.46
8.1.30.0050.00317.52
8.1.20.0040.00417.61
8.1.10.0070.00017.46
8.1.00.0000.00717.25
8.0.300.0040.00419.79
8.0.290.0000.01016.63
8.0.280.0040.00418.28
8.0.270.0000.00717.17
8.0.260.0000.00617.08
8.0.250.0030.00316.81
8.0.240.0060.00316.85
8.0.230.0000.00616.84
8.0.220.0040.00416.79
8.0.210.0030.00316.80
8.0.200.0070.00316.84
8.0.190.0000.00716.91
8.0.180.0070.00016.80
8.0.170.0000.00816.88
8.0.160.0070.00016.72
8.0.150.0040.00416.71
8.0.140.0030.00316.84
8.0.130.0030.00313.20
8.0.120.0040.00416.71
8.0.110.0030.00616.85
8.0.100.0040.00416.84
8.0.90.0030.00516.79
8.0.80.0060.00916.72
8.0.70.0000.00716.66
8.0.60.0040.00416.64
8.0.50.0000.00816.79
8.0.30.0120.00717.01
8.0.20.0110.00817.40
8.0.10.0040.00416.80
8.0.00.0060.01316.77
7.4.330.0070.00015.55
7.4.320.0060.00016.29
7.4.300.0060.00016.54
7.4.290.0050.00316.47
7.4.280.0050.00316.31
7.4.270.0040.00416.52
7.4.260.0040.00316.58
7.4.250.0000.00716.38
7.4.240.0070.00016.57
7.4.230.0060.00016.54
7.4.220.0130.00916.28
7.4.210.0030.01316.38
7.4.200.0000.00716.27
7.4.160.0110.00516.33
7.4.150.0040.01617.40
7.4.140.0120.00917.86
7.4.130.0100.00716.37
7.4.120.0120.00716.30
7.4.110.0120.00916.43
7.4.100.0090.01216.48
7.4.90.0100.01016.39
7.4.80.0060.01019.39
7.4.70.0060.01516.44
7.4.60.0090.00616.28
7.4.50.0030.00916.27
7.4.40.0090.00616.31
7.4.30.0160.00616.28
7.4.00.0080.00914.90
7.3.330.0050.00012.89
7.3.320.0000.00712.88
7.3.310.0000.00716.16
7.3.300.0030.00316.14
7.3.290.0110.00416.20
7.3.280.0110.00816.11
7.3.270.0090.00617.40
7.3.260.0100.00716.29
7.3.250.0090.00716.13
7.3.240.0070.01316.19
7.3.230.0100.00716.16
7.3.210.0080.00816.18
7.3.200.0140.00316.41
7.3.190.0140.00616.23
7.3.180.0120.00616.22
7.3.170.0070.01016.09
7.3.160.0080.00816.32
7.3.120.0040.01314.73
7.3.110.0070.01114.89
7.3.100.0060.01214.69
7.3.90.0110.00414.50
7.3.80.0050.00514.68
7.3.70.0060.00314.69
7.3.60.0000.00914.87
7.3.50.0070.00714.86
7.3.40.0110.00414.39
7.3.30.0040.00814.66
7.3.20.0080.00416.48
7.3.10.0070.00716.20
7.3.00.0030.01016.19
7.2.330.0110.00716.32
7.2.320.0060.01616.59
7.2.310.0100.00616.32
7.2.300.0110.01116.53
7.2.290.0100.00616.30
7.2.250.0100.01014.64
7.2.240.0070.01114.46
7.2.230.0140.00414.68
7.2.220.0060.00914.45
7.2.210.0070.00714.80
7.2.200.0060.00914.76
7.2.190.0030.01014.79
7.2.180.0000.01414.95
7.2.170.0120.00414.61
7.2.110.0060.00616.26
7.2.60.0090.00616.51
7.2.50.0070.00716.73
7.1.330.0030.01115.68
7.1.320.0060.00315.83
7.1.310.0040.01115.60
7.1.300.0060.00315.69
7.1.290.0070.00715.73
7.1.280.0040.01115.76
7.1.270.0070.00715.79
7.1.260.0030.00715.55
7.1.200.0030.00815.62
7.1.70.0030.00316.75
7.1.60.0110.00717.16
7.1.10.0030.06722.20
7.1.00.0100.06022.31
7.0.200.0070.00716.72
7.0.150.0130.05321.98
7.0.140.0030.06321.91
7.0.130.0070.05721.85
7.0.120.0070.05721.83
7.0.110.0070.06721.89
7.0.100.0070.07321.90
7.0.90.0070.07021.87
7.0.80.0070.07021.85
7.0.70.0100.06021.77
7.0.60.0100.07021.76
7.0.50.0070.05721.80
7.0.40.0070.07321.80
7.0.30.0100.06021.81
7.0.20.0130.05321.83
7.0.10.0070.06721.84
7.0.00.0070.07721.87

preferences:
74.14 ms | 401 KiB | 5 Q