3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo implements JsonSerializable { public function jsonSerialize() { return json_encode([1], JSON_PRETTY_PRINT); } } echo json_encode([new Foo]), "\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.3.60.0110.00316.74
8.3.50.0130.00521.98
8.3.40.0030.01218.82
8.3.30.0070.01419.21
8.3.20.0080.00020.34
8.3.10.0040.00423.70
8.3.00.0040.00421.02
8.2.180.0130.01316.63
8.2.170.0090.00618.96
8.2.160.0080.00822.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0150.00326.16
8.2.120.0000.00820.73
8.2.110.0000.00822.32
8.2.100.0110.00017.91
8.2.90.0060.00320.47
8.2.80.0030.00518.16
8.2.70.0080.00017.92
8.2.60.0100.00017.80
8.2.50.0000.00918.10
8.2.40.0060.00319.46
8.2.30.0020.00519.12
8.2.20.0040.00417.55
8.2.10.0050.00217.93
8.2.00.0040.00417.48
8.1.280.0060.00925.92
8.1.270.0070.00022.20
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00323.79
8.1.230.0040.00720.91
8.1.220.0040.00417.74
8.1.210.0030.00918.88
8.1.200.0000.00917.35
8.1.190.0000.00817.42
8.1.180.0030.00618.10
8.1.170.0000.00818.66
8.1.160.0040.00420.45
8.1.150.0040.00418.69
8.1.140.0060.00317.31
8.1.130.0030.00317.80
8.1.120.0040.00417.39
8.1.110.0000.00817.41
8.1.100.0000.00817.45
8.1.90.0000.00717.31
8.1.80.0000.00717.38
8.1.70.0000.00717.24
8.1.60.0000.00817.50
8.1.50.0030.00517.52
8.1.40.0040.00417.29
8.1.30.0040.00417.62
8.1.20.0000.00817.62
8.1.10.0000.00717.50
8.1.00.0000.00717.43
8.0.300.0040.00419.89
8.0.290.0040.00416.75
8.0.280.0070.00018.34
8.0.270.0000.00717.29
8.0.260.0000.00617.20
8.0.250.0000.00716.96
8.0.240.0000.00716.90
8.0.230.0040.00416.84
8.0.220.0000.00716.83
8.0.210.0040.00416.75
8.0.200.0060.00016.77
8.0.190.0030.00616.76
8.0.180.0050.00316.72
8.0.170.0000.00816.93
8.0.160.0000.00716.89
8.0.150.0050.00216.81
8.0.140.0040.00416.67
8.0.130.0030.00313.21
8.0.120.0040.00416.67
8.0.110.0000.00716.68
8.0.100.0030.00316.77
8.0.90.0000.00716.62
8.0.80.0090.00616.71
8.0.70.0000.00816.71
8.0.60.0040.00416.78
8.0.50.0020.00516.88
8.0.30.0150.00716.93
8.0.20.0100.01017.40
8.0.10.0040.00416.83
8.0.00.0060.01416.61
7.4.330.0030.00315.00
7.4.320.0000.00716.52
7.4.300.0000.00616.52
7.4.290.0000.00716.51
7.4.280.0030.00516.43
7.4.270.0070.00016.48
7.4.260.0000.00616.39
7.4.250.0080.00016.38
7.4.240.0030.00316.49
7.4.230.0000.00716.41
7.4.220.0070.01116.58
7.4.210.0100.01016.42
7.4.200.0050.00216.43
7.4.160.0050.01016.53
7.4.150.0060.01217.40
7.4.140.0120.00917.86
7.4.130.0100.01016.50
7.4.120.0070.01316.54
7.4.110.0070.01016.38
7.4.100.0030.01316.58
7.4.90.0030.01416.53
7.4.80.0200.00319.39
7.4.70.0150.00416.42
7.4.60.0070.01016.34
7.4.50.0070.00016.39
7.4.40.0150.00616.44
7.4.30.0060.00916.30
7.4.00.0060.00914.99
7.3.330.0060.00013.15
7.3.320.0050.00013.10
7.3.310.0000.00716.17
7.3.300.0070.00016.29
7.3.290.0090.00516.31
7.3.280.0110.00816.30
7.3.270.0120.00617.40
7.3.260.0130.01016.29
7.3.250.0090.01416.23
7.3.240.0060.01016.20
7.3.230.0100.00716.39
7.3.210.0140.00916.23
7.3.200.0060.00919.39
7.3.190.0130.00916.23
7.3.180.0090.00616.46
7.3.170.0040.01116.27
7.3.160.0110.00416.39
7.3.120.0060.00914.67
7.2.330.0100.00716.74
7.2.320.0110.01116.53
7.2.310.0060.01316.80
7.2.300.0060.01016.57
7.2.290.0090.01616.50
7.2.70.0160.01615.17
7.2.60.3550.00914.87
7.2.50.0150.01114.79
7.2.40.0580.01116.04
7.2.30.3420.00916.05
7.2.20.2850.01015.97
7.2.10.3110.01116.07
7.2.00.2960.01016.05
7.1.200.0030.01015.68
7.1.170.0350.00813.64
7.1.160.0400.01015.68
7.1.150.2930.01115.67
7.1.140.2940.01015.66
7.1.130.3060.01015.68
7.1.120.2600.00815.46
7.1.110.2670.01015.09
7.1.100.2300.00815.14
7.1.90.2450.01015.09
7.1.80.2450.01015.21
7.1.70.1540.01314.66
7.1.60.1740.01232.69
7.1.50.1310.01132.35
7.1.40.1240.01332.16
7.1.30.1260.01532.21
7.1.20.1190.01132.32
7.1.10.1010.00814.29
7.1.00.1000.01214.33
7.0.300.0140.00913.26
7.0.290.3330.01015.31
7.0.270.3370.01015.43
7.0.260.2160.01115.41
7.0.250.2780.01114.88
7.0.240.2350.00915.06
7.0.230.2420.00815.12
7.0.220.2180.00815.16
7.0.210.1560.00714.18
7.0.200.1610.00714.36
7.0.190.1110.01114.21
7.0.180.1780.00613.96
7.0.170.1190.00713.83
7.0.160.1310.00913.89
7.0.150.1060.01113.87
7.0.140.1030.01114.15
7.0.130.0910.01114.25
7.0.120.1030.01014.23
7.0.110.0900.01013.99
7.0.100.0910.01314.14
7.0.90.0990.00914.04
7.0.80.1150.01214.07
7.0.70.0920.01214.02
7.0.60.0720.01014.02
7.0.50.0890.00914.14
7.0.40.0760.01114.24
7.0.30.0870.01014.25
7.0.20.0670.00714.19
7.0.10.0630.00614.11
7.0.00.0680.01114.12
5.6.300.0140.04218.54
5.6.290.0160.03918.59
5.6.280.0130.04418.57
5.6.270.0180.05018.78
5.6.260.0170.04318.67
5.6.250.0170.04918.49
5.6.240.0190.05318.59
5.6.230.0160.05118.40
5.6.220.0220.04418.62
5.6.210.0120.04618.62
5.6.200.0140.04418.69
5.6.190.0180.04418.65
5.6.180.0140.04318.47
5.6.170.0180.04218.58
5.6.160.0150.04418.60
5.6.150.0170.04918.54
5.6.140.0170.04318.58
5.6.130.0160.04018.62
5.6.120.0130.04818.63
5.6.110.0130.04918.63
5.6.100.0190.04418.54
5.6.90.0160.04718.73
5.6.80.0160.03618.14
5.6.70.0160.05018.23
5.6.60.0120.04518.18
5.6.50.0140.03918.17
5.6.40.0150.04718.10
5.6.30.0130.05318.10
5.6.20.0150.04518.16
5.6.10.0160.04518.15
5.6.00.0140.04918.14
5.5.380.0110.05215.45
5.5.370.0140.04715.27
5.5.360.0170.03815.43
5.5.350.0140.03915.44
5.5.340.0170.04315.78
5.5.330.0170.04215.67
5.5.320.0120.04115.73
5.5.310.0180.03915.81
5.5.300.0130.04215.71
5.5.290.0160.03815.67
5.5.280.0170.03615.61
5.5.270.0110.05015.59
5.5.260.0150.04515.67
5.5.250.0120.03915.45
5.5.240.0150.03415.08
5.5.230.0090.04415.27
5.5.220.0150.04415.14
5.5.210.0130.03915.32
5.5.200.0170.03515.17
5.5.190.0130.03915.38
5.5.180.0150.04515.08
5.5.160.0120.04415.22
5.5.150.0100.04615.08
5.5.140.0150.04115.30
5.5.130.0140.03615.31
5.5.120.0140.03915.07
5.5.110.0140.03715.33
5.5.100.0140.04615.11
5.5.90.0160.03515.08
5.5.80.0140.03715.15
5.5.70.0150.03815.15
5.5.60.0150.04014.98
5.5.50.0200.04115.08
5.5.40.0150.03515.08
5.5.30.0150.04115.18
5.5.20.0150.04515.23
5.5.10.0150.04415.05
5.5.00.0110.04515.12
5.4.450.0140.04516.55
5.4.440.0130.04716.48
5.4.430.0130.04416.58
5.4.420.0120.03916.55
5.4.410.0150.03516.48
5.4.400.0150.04316.30
5.4.390.0160.03716.30
5.4.380.0140.03916.31
5.4.370.0130.04016.34
5.4.360.0160.03816.32
5.4.350.0160.04316.42
5.4.340.0140.03816.27
5.4.320.0130.04216.37
5.4.310.0140.03616.23
5.4.300.0130.03816.26
5.4.290.0130.03816.33
5.4.280.0130.04416.32
5.4.270.0160.03716.22
5.4.260.0130.04316.18
5.4.250.0130.04616.28
5.4.240.0100.04816.25
5.4.230.0180.04116.31
5.4.220.0120.04116.38
5.4.210.0150.03716.27
5.4.200.0110.03916.39
5.4.190.0150.04516.28
5.4.180.0150.04316.31
5.4.170.0140.04316.26
5.4.160.0150.03616.27
5.4.150.0140.04516.30
5.4.140.0190.03314.77
5.4.130.0190.04014.77
5.4.120.0120.03714.75
5.4.110.0160.03914.73
5.4.100.0130.04314.57
5.4.90.0130.03914.69
5.4.80.0100.04014.57
5.4.70.0140.03914.67
5.4.60.0130.04214.81
5.4.50.0110.04514.68
5.4.40.0180.03914.68
5.4.30.0130.04114.77
5.4.20.0130.03714.69
5.4.10.0110.04014.53
5.4.00.0140.04514.26
5.3.290.0140.03713.44
5.3.280.0170.04013.25
5.3.270.0130.04613.28
5.3.260.0140.04313.35
5.3.250.0140.04613.31
5.3.240.0130.03813.19
5.3.230.0140.04913.18
5.3.220.0160.03513.14
5.3.210.0160.04513.13
5.3.200.0130.03913.29
5.3.190.0140.04213.21
5.3.180.0110.04813.34
5.3.170.0150.04413.25
5.3.160.0120.04413.29
5.3.150.0150.03413.20
5.3.140.0120.04213.08
5.3.130.0170.03913.24
5.3.120.0130.04013.13
5.3.110.0140.04413.20
5.3.100.0150.04312.97
5.3.90.0160.04212.95
5.3.80.0160.04512.93
5.3.70.0100.04312.91
5.3.60.0130.03712.80
5.3.50.0110.03612.69
5.3.40.0190.04112.74
5.3.30.0170.04212.80
5.3.20.0120.03612.66
5.3.10.0130.03912.63
5.3.00.0170.04212.41
5.2.170.0140.03110.64
5.2.160.0120.03110.49
5.2.150.0120.03010.62
5.2.140.0090.03610.68
5.2.130.0140.03210.53
5.2.120.0090.03710.61
5.2.110.0090.03010.56
5.2.100.0090.02810.67
5.2.90.0110.03210.65
5.2.80.0120.03610.56
5.2.70.0090.03510.52
5.2.60.0100.03010.32
5.2.50.0110.03110.46
5.2.40.0110.03310.54
5.2.30.0100.02910.32
5.2.20.0090.03010.52
5.2.10.0100.03510.36
5.2.00.0120.03010.19
5.1.60.0100.0319.77
5.1.50.0100.0289.77
5.1.40.0080.0309.79
5.1.30.0130.02810.02
5.1.20.0120.0289.93
5.1.10.0100.0259.82
5.1.00.0100.0319.78
5.0.50.0070.0248.83
5.0.40.0070.0228.63
5.0.30.0050.0328.48
5.0.20.0080.0218.48
5.0.10.0070.0208.59
5.0.00.0070.0298.58
4.4.90.0080.0168.34
4.4.80.0070.0168.34
4.4.70.0070.0158.34
4.4.60.0070.0188.34
4.4.50.0060.0178.34
4.4.40.0070.0258.34
4.4.30.0070.0158.34
4.4.20.0050.0218.34
4.4.10.0090.0148.34
4.4.00.0070.0248.34
4.3.110.0050.0178.34
4.3.100.0060.0198.34
4.3.90.0040.0208.34
4.3.80.0060.0258.34
4.3.70.0070.0158.34
4.3.60.0080.0188.34
4.3.50.0060.0158.34
4.3.40.0070.0268.34
4.3.30.0040.0158.34
4.3.20.0030.0168.34
4.3.10.0040.0178.34
4.3.00.0050.0168.34

preferences:
46.39 ms | 401 KiB | 5 Q