3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo implements \JsonSerializable { public function jsonSerialize() { return new self; } } var_dump(json_encode(new Foo));

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.4.20.0110.01432.27
8.4.10.0110.01132.13
8.3.150.0160.03234.40
8.3.140.0070.01831.18
8.3.130.0140.01031.06
8.3.120.0220.01333.22
8.3.110.0190.01632.75
8.3.100.0140.01831.14
8.3.90.0230.02334.05
8.3.80.0170.01030.90
8.3.70.0280.01431.00
8.3.60.0340.02130.88
8.3.50.0300.01630.88
8.3.40.0210.02433.05
8.3.30.0200.02433.00
8.3.20.0140.01034.44
8.3.10.0180.00435.91
8.3.00.0180.00337.57
8.2.260.0130.01035.63
8.2.250.0250.01934.42
8.2.240.0170.01034.24
8.2.230.0040.01834.22
8.2.220.0190.00637.54
8.2.210.0340.00034.97
8.2.200.0230.00833.24
8.2.190.0210.02133.38
8.2.180.0330.01333.50
8.2.170.0430.01335.79
8.2.160.0260.01636.97
8.2.150.0120.01235.84
8.2.140.0170.00737.43
8.2.130.0100.01437.35
8.2.120.0070.01135.66
8.2.110.0160.00937.07
8.2.100.0290.01334.59
8.2.90.0170.01034.63
8.2.80.0180.01134.38
8.2.70.0100.01634.50
8.2.60.0170.01334.80
8.2.50.0140.01434.50
8.2.40.0110.01434.97
8.2.30.0100.01735.22
8.2.20.0060.01635.11
8.2.10.0140.01035.14
8.2.00.0130.01035.10
8.1.310.0200.00333.70
8.1.300.0210.00733.19
8.1.290.0210.00633.00
8.1.280.0250.01634.80
8.1.270.0200.00737.51
8.1.260.0100.01037.69
8.1.250.0200.01039.02
8.1.240.0070.01637.28
8.1.230.0170.02034.70
8.1.220.0070.02134.54
8.1.210.0160.00934.11
8.1.200.0100.01734.34
8.1.190.0160.01034.23
8.1.180.0190.00634.64
8.1.170.0100.01735.59
8.1.160.0090.01535.78
8.1.150.0070.01635.91
8.1.140.0100.01336.55
8.1.130.0130.01034.38
8.1.120.0110.01134.43
8.1.110.0120.02234.37
8.1.100.0100.01634.46
8.1.90.0030.02034.34
8.1.80.0070.01734.40
8.1.70.0040.01834.34
8.1.60.0120.01234.54
8.1.50.0040.02134.48
8.1.40.0100.01734.49
8.1.30.0060.02234.56
8.1.20.0070.01834.45
8.1.10.0070.01734.41
8.1.00.0160.01334.41
8.0.300.0120.01233.41
8.0.290.0100.01633.50
8.0.280.0030.02135.27
8.0.270.0170.01434.10
8.0.260.0070.02033.80
8.0.250.0160.00733.83
8.0.240.0100.01333.81
8.0.230.0030.02033.68
8.0.220.0040.01933.70
8.0.210.0030.01933.79
8.0.200.0120.01633.86
8.0.190.0100.01433.70
8.0.180.0210.00733.75
8.0.170.0160.00933.77
8.0.160.0100.01333.83
8.0.150.0130.01333.60
8.0.140.0100.01433.70
8.0.130.0130.01630.30
8.0.120.0100.01433.61
8.0.110.0130.01333.69
8.0.100.0070.01733.74
8.0.90.0110.01133.75
8.0.80.0250.01933.64
8.0.70.0070.01733.74
8.0.60.0100.01333.61
8.0.50.0030.02133.64
8.0.30.0200.03133.92
8.0.20.0260.03333.93
8.0.10.0000.02433.87
8.0.00.0330.03733.72
7.4.330.0090.01231.72
7.4.320.0060.01933.24
7.4.300.0030.02033.41
7.4.290.0140.01433.25
7.4.280.0190.00633.19
7.4.270.0190.00633.38
7.4.260.0100.01333.17
7.4.250.0070.01833.34
7.4.240.0030.02033.37
7.4.230.0140.01033.04
7.4.220.0140.01033.50
7.4.210.0190.03733.36
7.4.200.0130.01033.18
7.4.160.0170.03133.54
7.4.150.0260.02933.36
7.4.140.0220.03133.43
7.4.130.0270.03033.41
7.4.120.0260.03333.43
7.4.110.0310.04133.39
7.4.100.0300.03533.33
7.4.90.0250.03533.38
7.4.80.0260.03433.30
7.4.70.0260.03733.25
7.4.60.0230.03933.39
7.4.50.0230.03333.09
7.4.40.0340.03933.26
7.4.30.0400.03333.35
7.4.20.0260.03133.24
7.4.10.0280.02633.39
7.4.00.0210.02632.94
7.3.330.0110.01430.04
7.3.320.0100.01330.11
7.3.310.0100.01432.95
7.3.300.0090.01533.16
7.3.290.0140.01033.09
7.3.280.0300.03333.10
7.3.270.0380.01733.20
7.3.260.0320.03533.11
7.3.250.0230.03433.11
7.3.240.0290.04832.93
7.3.230.0290.03533.28
7.3.220.0210.05033.10
7.3.210.0320.03033.18
7.3.200.0270.03833.09
7.3.190.0350.02233.21
7.3.180.0290.03733.21
7.3.170.0300.03233.08
7.3.160.0320.02433.11
7.3.150.0230.03833.07
7.3.140.0350.02733.08
7.3.130.0200.04133.15
7.3.120.0250.02933.14
7.3.110.0320.02533.01
7.3.100.0310.02833.03
7.3.90.0210.03533.11
7.3.80.0200.03533.08
7.3.70.0260.02633.09
7.3.60.0240.02932.95
7.3.50.0310.03332.97
7.3.40.0310.02832.89
7.3.30.0300.04233.08
7.3.20.0440.03333.35
7.3.10.0230.02932.78
7.3.00.0210.02332.96
7.2.340.0260.04333.16
7.2.330.0290.03633.27
7.2.320.0380.03233.44
7.2.310.0210.03833.38
7.2.300.0330.03233.34
7.2.290.0280.03633.27
7.2.280.0340.03033.23
7.2.270.0250.03433.29
7.2.260.0230.03833.18
7.2.250.0300.03433.19
7.2.240.0240.03833.42
7.2.230.0200.03533.33
7.2.220.0240.03033.24
7.2.210.0310.03233.42
7.2.200.0290.02433.50
7.2.190.0240.03133.25
7.2.180.0290.03833.30
7.2.170.0250.03633.22
7.2.160.0210.04033.22
7.2.150.0350.03533.41
7.2.140.0310.04033.53
7.2.130.0280.02733.19
7.2.120.0180.03033.14
7.2.110.0180.02833.12
7.2.100.0220.02533.21
7.2.90.0260.02333.08
7.2.80.0200.02733.20
7.2.70.0310.03033.21
7.2.60.0180.02533.00
7.2.50.0270.02533.15
7.2.40.0220.03533.33
7.2.30.0290.03233.23
7.2.20.0300.02933.26
7.2.10.0210.03033.21
7.2.00.0330.02433.20
7.1.330.0270.04432.69
7.1.320.0290.03932.64
7.1.310.0280.03432.72
7.1.300.0260.04032.64
7.1.290.0710.03432.63
7.1.280.0270.03732.62
7.1.270.0350.04032.64
7.1.260.0500.02932.58
7.1.250.0220.03432.22
7.1.240.0420.02732.47
7.1.230.0250.03432.39
7.1.220.0410.02932.43
7.1.210.0380.03132.37
7.1.200.0330.02532.09
7.1.190.0320.03632.35
7.1.180.0290.03032.22
7.1.170.0370.03032.35
7.1.160.0270.03132.33
7.1.150.0310.03532.35
7.1.140.0280.03132.39
7.1.130.0260.03932.43
7.1.120.0260.03332.45
7.1.110.0320.02732.17
7.1.100.2140.02531.88
7.1.90.1900.03331.96
7.1.80.2430.02731.96
7.1.70.1970.02832.42
7.1.60.2000.03540.17
7.1.50.2050.03240.07
7.1.40.1770.03539.92
7.1.30.1440.03739.85
7.1.20.1590.03540.06
7.1.10.1620.03532.15
7.1.00.1800.03332.15
7.0.330.0260.03232.15
7.0.320.0250.03632.09
7.0.310.0300.03532.22
7.0.300.0310.02732.25
7.0.290.0290.03732.05
7.0.280.0330.03532.06
7.0.270.0320.03132.15
7.0.260.0270.02732.16
7.0.250.0380.02931.84
7.0.240.1520.02931.72
7.0.230.1690.03231.74
7.0.220.2340.03231.69
7.0.210.1920.02932.09
7.0.200.2110.03032.10
7.0.190.2200.03132.14
7.0.180.1970.02931.96
7.0.170.1260.03631.90
7.0.160.2330.03331.94
7.0.150.1900.03131.92
7.0.140.1930.03332.01
7.0.130.1370.03232.14
7.0.120.1990.03032.05
7.0.110.1870.03631.93
7.0.100.1760.03332.04
7.0.90.1890.03531.93
7.0.80.2000.03631.96
7.0.70.1880.03131.98
7.0.60.1960.04031.89
7.0.50.2160.03232.06
7.0.40.2190.03629.15
7.0.30.2070.03629.19
7.0.20.1820.02729.20
7.0.10.1920.03329.16
7.0.00.1950.03429.15
5.6.400.0230.02225.82
5.6.390.0270.01225.72
5.6.380.0180.01525.51
5.6.370.0230.01325.40
5.6.360.0230.01625.36
5.6.350.0240.01125.27
5.6.340.0220.01225.34
5.6.330.0190.01525.56
5.6.320.0150.01825.42
5.6.310.0260.00925.46
5.6.300.0240.04527.51
5.6.290.0250.03627.64
5.6.280.0220.03827.69
5.6.270.0230.03527.73
5.6.260.0200.03427.70
5.6.250.0210.03727.61
5.6.240.0230.04127.62
5.6.230.0220.04327.61
5.6.220.0210.03927.58
5.6.210.0190.03627.68
5.6.200.0220.03727.61
5.6.190.0200.04327.58
5.6.180.0210.04327.58
5.6.170.0240.04327.64
5.6.160.0250.03827.72
5.6.150.0230.04127.55
5.6.140.0260.03927.62
5.6.130.0250.04127.66
5.6.120.0230.04127.64
5.6.110.0230.04627.67
5.6.100.0240.03927.65
5.6.90.0210.04127.74
5.6.80.0240.03827.40
5.6.70.0260.03627.29
5.6.60.0260.03527.38
5.6.50.0380.07343.54
5.6.40.0330.08543.57
5.6.30.0380.07943.58
5.6.20.0390.07743.59
5.6.10.0380.08243.57
5.6.00.0340.07943.58
5.5.380.0410.07941.87
5.5.370.0340.08742.03
5.5.360.0390.08941.97
5.5.350.0380.07441.99
5.5.340.0340.08142.08
5.5.330.0350.08742.15
5.5.320.0410.07942.23
5.5.310.0360.07742.23
5.5.300.0400.08242.19
5.5.290.0400.08342.13
5.5.280.0440.08242.22
5.5.270.0400.09142.21
5.5.260.0420.09142.29
5.5.250.0400.09242.07
5.5.240.0410.08741.84
5.5.230.0370.08741.90
5.5.220.0420.08941.87
5.5.210.0420.08741.92
5.5.200.0350.08641.86
5.5.190.0410.08041.91
5.5.180.0380.09541.83
5.5.170.0440.06140.35
5.5.160.0400.08241.84
5.5.150.0330.08441.83
5.5.140.0380.07941.81
5.5.130.0400.08341.83
5.5.120.0350.07341.97
5.5.110.0360.07441.84
5.5.100.0370.07241.82
5.5.90.0340.07541.85
5.5.80.0310.07841.72
5.5.70.0350.07841.80
5.5.60.0360.08441.67
5.5.50.0350.09641.82
5.5.40.0390.08241.80
5.5.30.0400.08341.68
5.5.20.0360.10041.78
5.5.10.0350.10241.74
5.5.00.0380.08041.82
5.4.450.0400.09041.77
5.4.440.0360.07541.71
5.4.430.0370.08641.79
5.4.420.0400.08841.77
5.4.410.0350.08141.61
5.4.400.0340.08141.64
5.4.390.0340.08241.57
5.4.380.0400.08141.64
5.4.370.0400.07241.49
5.4.360.0400.08641.60
5.4.350.0310.08241.61
5.4.340.0300.08041.61
5.4.330.0360.06838.14
5.4.320.0340.07941.56
5.4.310.0310.07441.58
5.4.300.0390.06941.63
5.4.290.0380.07941.57
5.4.280.0350.07941.49
5.4.270.0330.07741.59
5.4.260.0280.07841.56
5.4.250.0320.07641.58
5.4.240.0400.07141.60
5.4.230.0320.08441.51
5.4.220.0360.08641.64
5.4.210.0390.07441.63
5.4.200.0400.08241.52
5.4.190.0340.09041.59
5.4.180.0350.08741.46
5.4.170.0390.09641.53
5.4.160.0440.08141.53
5.4.150.0310.08541.60
5.4.140.0350.08340.37
5.4.130.0430.08440.47
5.4.120.0350.07940.32
5.4.110.0360.08540.46
5.4.100.0340.08140.42
5.4.90.0330.07740.42
5.4.80.0350.07840.44
5.4.70.0380.07540.43
5.4.60.0320.08140.40
5.4.50.0380.07540.35
5.4.40.0360.08340.33
5.4.30.0310.06834.08
5.4.20.0280.07634.09
5.4.10.0260.06834.04
5.4.00.0280.08433.72
5.3.290.0130.03413.94
5.3.280.0120.03313.80
5.3.270.0170.03513.82
5.3.260.0110.03413.87
5.3.250.0130.03413.81
5.3.240.0160.03313.80
5.3.230.0140.03413.82
5.3.220.0140.03013.84
5.3.210.0130.03613.86
5.3.200.0110.03213.83
5.3.190.0110.03113.76
5.3.180.0120.03413.86
5.3.170.0110.03313.69
5.3.160.0110.03313.84
5.3.150.0130.02913.80
5.3.140.0130.03113.83
5.3.130.0150.03213.81
5.3.120.0160.03313.84
5.3.110.0120.03513.81
5.3.100.0140.03113.52
5.3.90.0100.03213.50
5.3.80.0160.03113.51
5.3.70.0110.03613.59
5.3.60.0130.03213.52
5.3.50.0150.02813.49
5.3.40.0110.02913.44
5.3.30.0120.02913.47
5.3.20.0120.02813.35
5.3.10.0110.02913.34
5.3.00.0120.02713.39
5.2.170.0070.02712.03
5.2.160.0070.02912.07
5.2.150.0090.02512.07
5.2.140.0090.02712.07
5.2.130.0090.02411.97
5.2.120.0120.02211.95
5.2.110.0090.02412.01
5.2.100.0090.02512.03
5.2.90.0110.02212.12
5.2.80.0090.02611.99
5.2.70.0090.02712.02
5.2.60.0090.02512.07
5.2.50.0070.02812.02
5.2.40.0080.02511.97
5.2.30.0100.02712.01
5.2.20.0080.02511.91
5.2.10.0100.02411.99
5.2.00.0070.02511.85
5.1.60.0130.02111.52
5.1.50.0080.02611.58
5.1.40.0100.01811.49
5.1.30.0090.02411.70
5.1.20.0110.02211.68
5.1.10.0100.02011.53
5.1.00.0080.02011.51
5.0.50.0060.01910.80
5.0.40.0080.01710.79
5.0.30.0070.02410.66
5.0.20.0080.01810.71
5.0.10.0070.01610.67
5.0.00.0090.02010.68
4.4.90.0060.01310.20
4.4.80.0050.01410.20
4.4.70.0070.01210.22
4.4.60.0060.01210.23
4.4.50.0060.01310.23
4.4.40.0080.01810.24
4.4.30.0040.01610.24
4.4.20.0060.01310.24
4.4.10.0060.01210.24
4.4.00.0050.01810.24
4.3.110.0060.01210.24
4.3.100.0040.01410.24
4.3.90.0060.01310.24
4.3.80.0040.01910.24
4.3.70.0050.01310.24
4.3.60.0060.01110.24
4.3.50.0060.01210.24
4.3.40.0060.01810.24
4.3.30.0060.01210.24
4.3.20.0050.01210.24
4.3.10.0050.01110.24
4.3.00.0020.01410.24

preferences:
77.67 ms | 403 KiB | 5 Q