3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Recursion implements JsonSerializable { public function __construct() { $this->cnt = 500; } public function jsonSerialize() { if ($this->cnt < 1) { return null; } $this->cnt--; return array($this->cnt => $this); } } var_dump(json_encode(new Recursion(), 0, 1500));

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.0120.00319.02
8.3.30.0070.00718.90
8.3.20.0080.00020.09
8.3.10.0070.00023.63
8.3.00.0080.00017.38
8.2.170.0120.00922.96
8.2.160.0100.00320.57
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00420.96
8.2.110.0060.00322.16
8.2.100.0080.00318.03
8.2.90.0000.00819.36
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0050.00518.09
8.2.30.0040.00418.01
8.2.20.0040.00417.63
8.2.10.0040.00418.11
8.2.00.0040.00417.74
8.1.270.0040.00423.95
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00523.87
8.1.230.0060.00619.15
8.1.220.0060.00317.77
8.1.210.0040.00418.77
8.1.200.0120.00017.36
8.1.190.0050.00317.23
8.1.180.0030.00518.10
8.1.170.0050.00318.61
8.1.160.0030.00522.01
8.1.150.0040.00418.90
8.1.140.0060.00317.33
8.1.130.0030.00317.83
8.1.120.0050.00317.53
8.1.110.0000.00717.33
8.1.100.0000.00717.51
8.1.90.0040.00817.35
8.1.80.0000.00717.41
8.1.70.0030.00317.41
8.1.60.0030.00617.62
8.1.50.0040.00417.45
8.1.40.0030.00517.42
8.1.30.0000.00817.62
8.1.20.0050.00217.51
8.1.10.0050.00217.45
8.1.00.0000.00917.46
8.0.300.0050.00218.77
8.0.290.0000.00816.75
8.0.280.0000.00718.39
8.0.270.0000.00717.27
8.0.260.0030.00317.17
8.0.250.0030.00316.96
8.0.240.0000.00816.84
8.0.230.0030.00316.83
8.0.220.0030.00516.93
8.0.210.0070.00016.92
8.0.200.0030.00316.97
8.0.190.0030.00316.98
8.0.180.0040.00416.99
8.0.170.0040.00416.93
8.0.160.0000.00716.84
8.0.150.0000.00816.86
8.0.140.0070.00016.88
8.0.130.0000.00713.26
8.0.120.0040.00416.86
8.0.110.0000.00716.88
8.0.100.0000.00716.73
8.0.90.0000.00717.02
8.0.80.0060.00916.89
8.0.70.0040.00416.73
8.0.60.0020.00516.86
8.0.50.0040.00416.78
8.0.30.0130.01217.16
8.0.20.0050.01717.40
8.0.10.0040.00416.97
8.0.00.0100.00916.71
7.4.330.0000.00515.00
7.4.320.0040.00416.61
7.4.300.0030.00316.52
7.4.290.0030.00316.49
7.4.280.0070.00016.64
7.4.270.0000.00716.46
7.4.260.0060.00616.51
7.4.250.0040.00416.47
7.4.240.0040.00416.57
7.4.230.0030.00316.59
7.4.220.0090.00916.53
7.4.210.0060.01016.48
7.4.200.0000.00716.53
7.4.160.0060.01016.59
7.4.150.0040.01417.40
7.4.140.0130.00717.86
7.4.130.0060.01116.36
7.4.120.0060.01316.56
7.4.110.0040.01416.57
7.4.100.0040.01216.73
7.4.90.0070.01016.57
7.4.80.0150.00719.39
7.4.70.0130.01016.41
7.4.60.0060.01616.45
7.4.50.0000.00816.37
7.4.40.0090.00916.43
7.4.30.0060.01416.48
7.4.00.0060.00714.83
7.3.330.0030.00313.29
7.3.320.0000.00513.30
7.3.310.0040.00416.29
7.3.300.0030.00316.22
7.3.290.0140.00016.30
7.3.280.0070.00716.28
7.3.270.0110.00817.40
7.3.260.0090.00616.21
7.3.250.0050.01116.39
7.3.240.0140.00716.26
7.3.230.0120.00416.39
7.3.210.0110.00516.50
7.3.200.0170.00019.39
7.3.190.0090.00616.37
7.3.180.0070.01316.39
7.3.170.0160.00016.38
7.3.160.0120.00316.40
7.3.120.0070.01014.75
7.3.110.0100.01014.58
7.3.100.0030.01614.59
7.3.90.0090.00614.81
7.3.80.0040.01114.65
7.3.70.0030.01114.68
7.3.60.0060.00614.90
7.3.50.0030.01314.73
7.3.40.0000.00814.62
7.3.30.0060.00314.76
7.3.20.0090.00916.56
7.3.10.0090.00716.60
7.3.00.0060.00816.56
7.2.330.0130.00716.46
7.2.320.0060.01616.48
7.2.310.0090.00916.60
7.2.300.0060.01016.45
7.2.290.0070.01316.71
7.2.250.0030.01515.35
7.2.240.0070.01015.11
7.2.230.0030.01314.79
7.2.220.0120.00615.20
7.2.210.0070.01015.13
7.2.200.0040.01114.86
7.2.190.0130.00714.66
7.2.180.0040.01115.02
7.2.170.0040.01115.18
7.2.160.0080.00414.91
7.2.150.0070.00716.96
7.2.140.0140.00316.78
7.2.130.0120.01016.80
7.2.120.0090.00616.62
7.2.110.0040.00916.72
7.2.100.0080.01116.64
7.2.90.0100.01016.73
7.2.80.0100.00916.83
7.2.70.0060.01216.71
7.2.60.0090.00916.99
7.2.50.0110.00716.93
7.2.40.0040.01016.84
7.2.30.0050.00916.86
7.2.20.0050.01016.76
7.2.10.0080.00616.99
7.2.00.0080.00717.75
7.1.330.0040.01215.82
7.1.320.0070.01015.72
7.1.310.0030.01015.71
7.1.300.0120.00615.81
7.1.290.0040.00715.80
7.1.280.0030.00715.87
7.1.270.0060.01015.60
7.1.260.0060.01315.81
7.1.250.0040.01015.32
7.1.240.0080.00815.86
7.1.230.0030.01015.79
7.1.220.0000.01715.86
7.1.210.0040.00815.81
7.1.200.0100.00315.80
7.1.190.0040.01215.87
7.1.180.0140.00015.76
7.1.170.0030.00815.76
7.1.160.0000.01415.73
7.1.150.0100.00315.66
7.1.140.0070.00715.85
7.1.130.0000.01415.79
7.1.120.0000.01115.66
7.1.110.0070.01015.74
7.1.100.0060.01116.72
7.1.90.0100.00315.62
7.1.80.0060.00915.74
7.1.70.0080.00316.46
7.1.60.0070.01317.51
7.1.50.0090.00816.29
7.1.40.0080.00815.80
7.1.30.0060.00615.59
7.1.20.0100.00315.81
7.1.10.0100.00315.64
7.1.00.0000.04518.89
7.0.330.0040.01115.19
7.0.320.0120.00415.49
7.0.310.0000.01315.30
7.0.300.0030.00615.37
7.0.290.0040.00815.11
7.0.280.0030.00715.44
7.0.270.0000.01615.46
7.0.260.0070.01015.55
7.0.250.0120.00315.41
7.0.240.0060.00615.50
7.0.230.0000.01015.12
7.0.220.0040.01115.38
7.0.210.0100.00715.25
7.0.200.0050.00515.96
7.0.190.0000.01715.48
7.0.180.0070.00315.45
7.0.170.0000.01115.25
7.0.160.0040.01215.29
7.0.150.0040.00815.24
7.0.140.0070.04018.80
7.0.130.0070.00715.30
7.0.120.0030.00615.21
7.0.110.0060.00615.37
7.0.100.0030.00715.48
7.0.90.0270.03717.69
7.0.80.0310.03517.72
7.0.70.0320.04417.80
7.0.60.0270.04117.52
7.0.50.0400.04517.87
7.0.40.0050.04516.82
7.0.30.0080.04516.62
7.0.20.0050.04216.86
7.0.10.0050.04716.65
7.0.00.0050.03916.81
5.6.400.0040.00814.36
5.6.390.0000.01214.69
5.6.380.0030.01014.45
5.6.370.0030.01014.28
5.6.360.0060.00814.50
5.6.350.0040.01214.45
5.6.340.0080.00414.43
5.6.330.0030.01214.28
5.6.320.0090.00614.68
5.6.310.0060.00914.23
5.6.300.0070.00714.18
5.6.290.0040.01514.32
5.6.280.0050.04017.61
5.6.270.0070.00714.62
5.6.260.0080.00614.29
5.6.250.0040.00914.35
5.6.240.0060.02917.57
5.6.230.0030.04017.52
5.6.220.0050.04317.42
5.6.210.0110.03917.48
5.6.200.0150.03317.80
5.6.190.0050.04517.74
5.6.180.0050.04417.79
5.6.170.0060.04317.70
5.6.160.0140.04717.81
5.6.150.0050.04217.64
5.6.140.0070.04717.70
5.6.130.0090.03017.68
5.6.120.0050.04717.62
5.6.110.0050.03217.84
5.6.100.0110.04517.62
5.6.90.0090.02517.73
5.6.80.0140.02817.27
5.6.70.0070.04717.40
5.6.60.0050.03017.31
5.6.50.0100.03517.32
5.6.40.0050.04417.27
5.6.30.0030.04717.43
5.6.20.0110.03617.29
5.6.10.0100.03817.38
5.6.00.0030.04517.32
5.5.380.0120.03717.44
5.5.370.0050.03317.39
5.5.360.0080.03717.41
5.5.350.0070.04417.30
5.5.340.0050.02717.63
5.5.330.0120.03817.56
5.5.320.0080.04017.76
5.5.310.0090.04017.60
5.5.300.0050.03417.51
5.5.290.0010.04617.63
5.5.280.0070.04617.50
5.5.270.0050.04217.48
5.5.260.0100.04517.54
5.5.250.0070.04417.57
5.5.240.0100.03317.30
5.5.230.0070.04217.19
5.5.220.0050.03717.20
5.5.210.0080.03817.23
5.5.200.0060.03817.23
5.5.190.0100.03517.16
5.5.180.0070.04417.37
5.5.170.0110.00313.92
5.5.160.0060.04817.26
5.5.150.0050.04217.12
5.5.140.0100.04017.34
5.5.130.0030.04217.23
5.5.120.0100.02817.20
5.5.110.0050.04417.34
5.5.100.0120.03517.28
5.5.90.0090.03917.11
5.5.80.0000.04817.08
5.5.70.0030.04517.08
5.5.60.0050.04517.08
5.5.50.0070.03717.18
5.5.40.0070.03717.07
5.5.30.0100.03017.12
5.5.20.0080.04317.03
5.5.10.0030.02717.20
5.5.00.0100.04017.24
5.4.450.0080.04215.24
5.4.440.0030.04215.22
5.4.430.0030.02815.03
5.4.420.0120.03715.01
5.4.410.0050.03714.92
5.4.400.0030.04415.07
5.4.390.0050.04014.93
5.4.380.0030.02714.87
5.4.370.0100.02814.91
5.4.360.0050.04015.11
5.4.350.0030.04315.10
5.4.340.0070.03515.05
5.4.330.0060.00311.08
5.4.320.0050.03814.97
5.4.310.0070.04014.96
5.4.300.0020.04714.94
5.4.290.0030.03814.83
5.4.280.0050.03914.83
5.4.270.0000.03115.07
5.4.260.0090.03314.95
5.4.250.0050.02814.89
5.4.240.0070.03014.95
5.4.230.0070.03314.98
5.4.220.0050.04314.60
5.4.210.0080.03015.02
5.4.200.0060.04114.82
5.4.190.0050.03814.91
5.4.180.0050.03015.04
5.4.170.0050.04014.80
5.4.160.0100.02414.88
5.4.150.0030.04015.02
5.4.140.0070.04113.52
5.4.130.0050.03513.54
5.4.120.0100.03313.54
5.4.110.0030.03113.45
5.4.100.0080.03313.52
5.4.90.0110.03513.80
5.4.80.0070.03813.46
5.4.70.0020.03313.58
5.4.60.0070.02713.65
5.4.50.0080.03713.68
5.4.40.0030.04013.43
5.4.30.0040.02713.68
5.4.20.0080.04013.76
5.4.10.0050.03013.43
5.4.00.0020.03913.20
5.3.290.0070.07314.64
5.3.280.0270.04314.66
5.3.270.0130.07714.68
5.3.260.0100.07314.73
5.3.250.0200.06014.53
5.3.240.0030.07714.66
5.3.230.0030.04314.60
5.3.220.0100.07314.55
5.3.210.0100.07714.67
5.3.200.0030.07014.55
5.3.190.0030.06014.57
5.3.180.0070.07714.56
5.3.170.0100.07314.59
5.3.160.0030.07314.70
5.3.150.0000.08714.56
5.3.140.0030.08014.61
5.3.130.0170.06314.58
5.3.120.0100.07314.57
5.3.110.0130.07014.60
5.3.100.0070.07714.11
5.3.90.0100.07014.11
5.3.80.0100.05013.93
5.3.70.0030.06714.08
5.3.60.0100.04014.14
5.3.50.0170.06013.96
5.3.40.0100.06314.00
5.3.30.0070.07313.89
5.3.20.0070.07313.76
5.3.10.0100.06713.71
5.3.00.0100.07013.71
5.2.170.0070.06011.20
5.2.160.0070.06011.27
5.2.150.0070.06311.21
5.2.140.0070.06011.21
5.2.130.0070.05711.02
5.2.120.0100.05311.22
5.2.110.0000.04711.23
5.2.100.0000.07011.11
5.2.90.0100.06011.21
5.2.80.0000.06711.10
5.2.70.0130.04311.01
5.2.60.0130.05711.05
5.2.50.0070.05011.01
5.2.40.0030.06311.13
5.2.30.0070.06010.99
5.2.20.0000.07010.91
5.2.10.0030.04310.89
5.2.00.0070.03310.82
5.1.60.0000.0579.88
5.1.50.0030.0539.90
5.1.40.0000.03710.08
5.1.30.0070.05710.47
5.1.20.0030.05310.27
5.1.10.0030.05310.13
5.1.00.0130.04310.15
5.0.50.0070.0308.66
5.0.40.0030.0438.26
5.0.30.0070.0608.30
5.0.20.0070.0438.19
5.0.10.0070.0408.24
5.0.00.0030.0438.02
4.4.90.0000.0378.02
4.4.80.0000.0338.02
4.4.70.0030.0308.02
4.4.60.0070.0308.02
4.4.50.0000.0308.02
4.4.40.0000.0478.02
4.4.30.0000.0308.02
4.4.20.0000.0338.02
4.4.10.0000.0378.02
4.4.00.0030.0378.02
4.3.110.0000.0378.02
4.3.100.0000.0338.02
4.3.90.0030.0308.02
4.3.80.0000.0608.02
4.3.70.0030.0438.02
4.3.60.0070.0308.02
4.3.50.0000.0378.02
4.3.40.0030.0408.02
4.3.30.0000.0238.02
4.3.20.0000.0378.02
4.3.10.0030.0378.02
4.3.00.0000.0378.02

preferences:
65.25 ms | 400 KiB | 5 Q