3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$a = ['a','b', ['x']]; echo json_encode(['a','b']); echo "\n"; echo json_encode(['a' => 'xyz','b']);

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.0080.00816.25
8.3.50.0160.00616.23
8.3.40.0140.00318.77
8.3.30.0040.01118.46
8.3.20.0080.00020.04
8.3.10.0040.00422.14
8.3.00.0000.00823.52
8.2.180.0100.00618.16
8.2.170.0140.00022.96
8.2.160.0100.00320.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0090.00020.39
8.2.120.0000.00726.35
8.2.110.0030.00619.30
8.2.100.0090.00317.84
8.2.90.0000.00817.63
8.2.80.0060.00318.78
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0040.00420.34
8.2.30.0000.00719.22
8.2.20.0030.00318.04
8.2.10.0000.00717.84
8.2.00.0040.00417.97
8.1.280.0080.00625.92
8.1.270.0090.00623.99
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.92
8.1.230.0040.00718.89
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0050.00317.10
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0030.00518.45
8.1.160.0030.00618.75
8.1.150.0040.00420.02
8.1.140.0080.00017.32
8.1.130.0000.00717.28
8.1.120.0100.00017.34
8.1.110.0000.00817.37
8.1.100.0060.00317.32
8.1.90.0050.00317.34
8.1.80.0070.00017.21
8.1.70.0040.00417.25
8.1.60.0050.00317.39
8.1.50.0050.00317.37
8.1.40.0030.00517.41
8.1.30.0000.00717.53
8.1.20.0050.00317.41
8.1.10.0000.00817.45
8.1.00.0070.00017.34
8.0.300.0060.00318.77
8.0.290.0080.00016.63
8.0.280.0030.00318.28
8.0.270.0060.00317.11
8.0.260.0000.00716.79
8.0.250.0050.00216.82
8.0.240.0080.00016.82
8.0.230.0030.00316.81
8.0.220.0000.00716.63
8.0.210.0070.00016.66
8.0.200.0060.00016.73
8.0.190.0050.00316.80
8.0.180.0000.00716.65
8.0.170.0000.00716.76
8.0.160.0070.00016.80
8.0.150.0070.00416.74
8.0.140.0030.00416.60
8.0.130.0050.00013.17
8.0.120.0040.00416.61
8.0.110.0000.00716.59
8.0.100.0040.00416.66
8.0.90.0050.00216.69
8.0.80.0080.00716.80
8.0.70.0050.00316.85
8.0.60.0040.00416.82
8.0.50.0040.00416.73
8.0.30.0080.01116.89
8.0.20.0100.01117.40
8.0.10.0040.00416.89
8.0.00.0100.00716.64
7.4.330.0000.00515.55
7.4.320.0060.00016.36
7.4.300.0030.00316.43
7.4.290.0030.00316.40
7.4.280.0000.00716.36
7.4.270.0030.00316.34
7.4.260.0040.00416.43
7.4.250.0070.00016.32
7.4.240.0070.00016.38
7.4.230.0000.00716.39
7.4.220.0100.01616.39
7.4.210.0030.01016.44
7.4.200.0000.00716.29
7.4.150.0110.00717.40
7.4.140.0090.01217.86
7.4.130.0080.00816.33
7.4.120.0120.00716.43
7.4.110.0100.01016.40
7.4.100.0080.00816.36
7.4.90.0060.01116.55
7.4.80.0060.01019.39
7.4.70.0090.00916.49
7.4.60.0150.00016.48
7.4.50.0070.00716.37
7.4.40.0140.01016.17
7.4.30.0090.00916.34
7.4.10.0030.01414.84
7.4.00.0050.01014.90
7.3.330.0050.00012.86
7.3.320.0000.00512.96
7.3.310.0000.00616.09
7.3.300.0040.00415.98
7.3.290.0070.00016.04
7.3.280.0080.01016.12
7.3.270.0070.01017.40
7.3.260.0050.01516.24
7.3.250.0100.00816.36
7.3.240.0130.00416.19
7.3.230.0100.00716.46
7.3.210.0060.01016.21
7.3.200.0130.00316.13
7.3.190.0180.00616.10
7.3.180.0060.01116.36
7.3.170.0030.01616.17
7.3.160.0100.00616.45
7.3.130.0100.00714.60
7.3.120.0070.01014.65
7.3.110.0060.01014.86
7.3.100.0060.00614.64
7.3.90.0100.00614.48
7.3.80.0060.00614.54
7.3.70.0080.00414.78
7.3.60.0000.00814.40
7.3.50.0100.00614.67
7.3.40.0030.00714.46
7.3.30.0110.00414.71
7.3.20.0080.00416.38
7.3.10.0120.00516.54
7.3.00.0100.00916.34
7.2.330.0130.00416.57
7.2.320.0090.00916.58
7.2.310.0100.00616.43
7.2.300.0190.00316.65
7.2.290.0130.00916.24
7.2.260.0070.01015.13
7.2.250.0060.01314.71
7.2.240.0090.00614.98
7.2.230.0040.01114.84
7.2.220.0030.01515.04
7.2.210.0060.01014.99
7.2.200.0110.00414.97
7.2.190.0060.00314.80
7.2.180.0110.00414.84
7.2.170.0000.01214.74
7.2.160.0000.00914.75
7.2.150.0090.00616.84
7.2.140.0060.00616.72
7.2.130.0090.00616.71
7.2.120.0090.00716.54
7.2.110.0070.00916.75
7.2.100.0110.00616.69
7.2.90.0110.00416.77
7.2.80.0090.00716.42
7.2.70.0120.00316.67
7.2.60.0080.00716.70
7.2.50.0020.01316.52
7.2.40.0040.00916.78
7.2.30.0050.00916.81
7.2.20.0030.00916.58
7.2.10.0090.00616.62
7.2.00.0090.00816.85
7.1.330.0130.00015.66
7.1.320.0030.00715.77
7.1.310.0050.00515.61
7.1.300.0060.00915.59
7.1.290.0070.00715.41
7.1.280.0030.01015.59
7.1.270.0040.00815.46
7.1.260.0100.01015.74
7.1.250.0070.00815.59
7.1.240.0050.01015.60
7.1.230.0070.00815.37
7.1.220.0070.01215.48
7.1.210.0050.01115.46
7.1.200.0060.00715.56
7.1.190.0110.00515.58
7.1.180.0050.00815.48
7.1.170.0070.00715.64
7.1.160.0090.00615.33
7.1.150.0070.00715.65
7.1.140.0070.00515.68
7.1.130.0050.00715.60
7.1.120.0090.00415.57
7.1.110.0080.00715.49
7.1.100.0510.00615.82
7.1.90.0450.00715.72
7.1.80.0440.00715.60
7.1.70.0740.00815.26
7.1.60.0520.00921.49
7.1.50.0400.00921.21
7.1.40.0570.00521.16
7.1.30.0420.00821.17
7.1.20.0550.00621.26
7.1.10.0340.00615.29
7.1.00.0430.00815.12
7.0.330.0070.00715.25
7.0.320.0080.00815.23
7.0.310.0050.00715.31
7.0.300.0110.00414.98
7.0.290.0070.00915.11
7.0.280.0070.00715.15
7.0.270.0020.01115.34
7.0.260.0060.00715.05
7.0.250.0070.00515.29
7.0.240.0450.01015.47
7.0.230.0480.00715.46
7.0.220.0470.00815.51
7.0.210.0470.00515.13
7.0.200.0570.00715.05
7.0.190.0530.00615.06
7.0.180.0470.00915.04
7.0.170.0540.00814.90
7.0.160.0360.00714.87
7.0.150.0490.00715.02
7.0.140.0540.00714.90
7.0.130.0440.00815.05
7.0.120.0360.01315.20
7.0.110.0430.01015.02
7.0.100.0450.01015.05
7.0.90.0370.00614.96
7.0.80.0430.00715.12
7.0.70.0340.00714.85
7.0.60.0270.00714.79
7.0.50.0420.00614.92
7.0.40.0920.01113.68
7.0.30.0270.00713.76
7.0.20.0730.00713.78
7.0.10.0730.00513.84
7.0.00.0640.00613.85
5.6.400.0070.00714.18
5.6.390.0040.01114.24
5.6.380.0030.00514.20
5.6.370.0100.00313.89
5.6.360.0080.00413.85
5.6.350.0060.00614.40
5.6.340.0070.00414.43
5.6.330.0070.00714.34
5.6.320.0040.00414.28
5.6.310.0040.00813.93
5.6.300.0070.00714.11
5.6.290.0040.01114.11
5.6.280.0120.00313.83
5.6.270.0000.01214.43
5.6.260.0070.00413.93
5.6.250.0060.00814.39
5.6.240.0040.01114.48
5.6.230.0080.00814.19
5.6.220.0070.00414.22
5.6.210.0000.01214.21
5.6.200.0080.00414.28
5.6.190.0080.00413.99
5.6.180.0000.01114.21
5.6.170.0120.00414.27
5.6.160.0000.01214.11
5.6.150.0140.00314.33
5.6.140.0080.00614.02
5.6.130.0090.00914.08
5.6.120.0040.01114.16
5.6.110.0000.01414.16
5.6.100.0030.00614.21
5.6.90.0080.00614.06
5.6.80.0030.01014.30
5.6.70.0090.00414.04
5.6.60.0070.00714.20
5.6.50.0080.00413.97
5.6.40.0000.01414.02
5.6.30.0030.01414.27
5.6.20.0050.00514.01
5.6.10.0120.00013.97
5.6.00.0030.01314.14

preferences:
59.5 ms | 400 KiB | 5 Q