3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function bar() { echo 'baz'; } } (new foo)->bar();

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.00818.30
8.3.50.0120.01021.14
8.3.40.0100.01018.69
8.3.30.0100.00320.15
8.3.20.0150.00420.07
8.3.10.0090.00922.27
8.3.00.0040.00422.51
8.2.180.0130.00316.38
8.2.170.0100.00322.96
8.2.160.0130.00720.35
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0100.00619.65
8.2.110.0040.00420.53
8.2.100.0050.00519.41
8.2.90.0000.00719.05
8.2.80.0040.00419.34
8.2.70.0080.00017.50
8.2.60.0040.00417.80
8.2.50.0050.00518.07
8.2.40.0000.00819.94
8.2.30.0040.00417.80
8.2.20.0040.00417.53
8.2.10.0000.00717.54
8.2.00.0060.00317.58
8.1.280.0070.01025.92
8.1.270.0060.00320.29
8.1.260.0100.00726.35
8.1.250.0080.00028.09
8.1.240.0050.00523.96
8.1.230.0090.00318.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0080.00017.17
8.1.180.0070.00020.30
8.1.170.0000.00818.28
8.1.160.0020.00522.04
8.1.150.0040.00418.47
8.1.140.0050.00217.32
8.1.130.0040.00417.83
8.1.120.0050.00317.18
8.1.110.0000.00717.34
8.1.100.0040.00417.39
8.1.90.0050.00317.36
8.1.80.0030.00317.32
8.1.70.0000.00717.30
8.1.60.0070.00017.33
8.1.50.0000.00817.47
8.1.40.0000.00817.49
8.1.30.0050.00317.58
8.1.20.0050.00317.57
8.1.10.0030.00617.54
8.1.00.0000.00817.43
8.0.300.0040.00418.77
8.0.290.0040.00417.04
8.0.280.0080.00018.51
8.0.270.0030.00317.16
8.0.260.0060.00016.81
8.0.250.0070.00016.86
8.0.240.0000.00916.86
8.0.230.0000.00716.73
8.0.220.0050.00316.68
8.0.210.0040.00416.73
8.0.200.0030.00316.80
8.0.190.0000.00716.78
8.0.180.0020.00516.69
8.0.170.0000.00816.80
8.0.160.0070.00016.80
8.0.150.0070.00016.63
8.0.140.0030.00716.72
8.0.130.0000.00513.17
8.0.120.0040.00416.76
8.0.110.0080.00016.73
8.0.100.0040.00416.75
8.0.90.0050.00216.57
8.0.80.0100.00916.71
8.0.70.0000.00716.54
8.0.60.0020.00516.82
8.0.50.0040.00416.73
8.0.30.0090.00816.89
8.0.20.0120.01017.40
8.0.10.0000.00716.70
8.0.00.0100.01116.70
7.4.330.0030.00315.00
7.4.320.0000.00716.45
7.4.300.0030.00316.44
7.4.290.0030.00616.50
7.4.280.0030.00516.42
7.4.270.0030.00316.34
7.4.260.0040.00416.56
7.4.250.0050.00216.46
7.4.240.0010.00616.44
7.4.230.0030.00316.48
7.4.220.0090.01616.35
7.4.210.0040.01216.51
7.4.200.0000.00716.32
7.4.190.0040.00416.61
7.4.160.0040.01116.30
7.4.150.0120.00617.40
7.4.140.0080.01317.86
7.4.130.0090.01016.50
7.4.120.0090.00816.52
7.4.110.0070.01116.48
7.4.100.0060.01216.44
7.4.90.0090.00816.44
7.4.80.0120.00619.39
7.4.70.0100.00516.42
7.4.60.0130.00316.41
7.4.50.0050.00016.61
7.4.40.0000.01122.77
7.4.30.0110.00716.38
7.4.00.0060.01114.80
7.3.330.0030.00313.06
7.3.320.0000.00513.09
7.3.310.0030.00316.07
7.3.300.0070.00016.05
7.3.290.0070.00716.20
7.3.280.0090.00716.20
7.3.270.0030.01317.40
7.3.260.0130.00716.45
7.3.250.0090.00816.26
7.3.240.0120.00816.25
7.3.230.0100.00716.41
7.3.210.0090.00916.19
7.3.200.0090.00919.39
7.3.190.0140.00716.41
7.3.180.0030.01616.44
7.3.170.0090.00616.29
7.3.160.0130.00716.39
7.3.120.0090.00614.66
7.3.110.0060.00614.38
7.3.100.0060.00914.95
7.3.90.0090.00614.54
7.3.80.0030.00914.79
7.3.70.0030.01714.82
7.3.60.0070.00714.60
7.3.50.0060.00914.55
7.3.40.0060.00914.85
7.3.30.0040.01114.65
7.3.20.0120.00316.61
7.3.10.0040.01416.64
7.3.00.0000.00916.57
7.2.330.0150.00316.41
7.2.320.0060.01316.77
7.2.310.0080.00816.77
7.2.300.0130.00316.46
7.2.290.0170.00316.46
7.2.250.0100.01014.68
7.2.240.0000.02015.00
7.2.230.0070.01114.91
7.2.220.0070.01314.85
7.2.210.0100.01015.13
7.2.200.0110.00715.05
7.2.190.0060.00914.95
7.2.180.0110.00714.61
7.2.170.0030.00714.86
7.2.60.0070.00716.59
7.2.00.0060.00619.36
7.1.330.0030.01015.65
7.1.320.0070.00715.80
7.1.310.0140.00315.86
7.1.300.0040.01115.57
7.1.290.0070.00715.70
7.1.280.0030.00815.63
7.1.270.0040.01115.43
7.1.260.0030.00715.83
7.1.200.0040.00415.79
7.1.100.0070.01017.85
7.1.70.0070.00016.75
7.1.60.0110.01419.50
7.1.50.0090.00316.84
7.1.00.0000.07722.58
7.0.200.0030.00316.40
7.0.140.0030.06321.93
7.0.70.3530.03319.88
7.0.60.0100.05319.93
7.0.50.0030.07717.85
7.0.40.0000.05320.29
7.0.30.0200.06020.06
7.0.20.0300.07020.05
7.0.10.0100.05320.12
7.0.00.0000.04720.19
5.6.280.0070.07021.09
5.6.210.0070.07720.76
5.6.200.0070.04018.15
5.6.190.0070.09020.49
5.6.180.0200.05020.45
5.6.170.0300.04720.46
5.6.160.0100.08020.61
5.6.150.0130.03718.27
5.6.140.0100.08018.18
5.6.130.0070.03718.18
5.6.120.0170.07321.14
5.6.110.0100.08020.99
5.6.100.0030.04021.09
5.6.90.0230.05321.00
5.6.80.0070.08320.48
5.6.70.0170.08320.28
5.5.350.0130.07720.53
5.5.340.0100.06717.99
5.5.330.0130.07320.19
5.5.320.0030.05020.20
5.5.310.0230.03320.26
5.5.300.0030.07718.09
5.5.290.0030.08318.04
5.5.280.0100.08020.65
5.5.270.0030.07320.78
5.5.260.0030.09020.79
5.5.250.0130.08020.55
5.5.240.0170.07320.04
5.4.450.0100.06319.44
5.4.440.1000.05019.48
5.4.430.1070.05319.47
5.4.420.1670.05719.19
5.4.410.0170.04719.58
5.4.400.0070.05319.14
5.4.390.0430.05319.06
5.4.380.0130.06018.70
5.4.370.0370.04718.62
5.4.360.0370.05318.75
5.4.350.0070.03812.02
5.4.340.0050.03812.02
5.4.320.0050.04012.50
5.4.310.0100.05612.50
5.4.300.0100.04112.50
5.4.290.0060.04012.50
5.4.280.0040.03612.39
5.4.270.0090.03912.39
5.4.260.0080.03812.39
5.4.250.0130.04318.96
5.4.240.0200.04018.74
5.4.230.0100.05018.95
5.4.220.0030.05719.02
5.4.210.0100.04718.79
5.4.200.0030.05718.96
5.4.190.0170.06718.76
5.4.180.0100.05018.62
5.4.170.0130.04718.89
5.4.160.0170.04318.98
5.4.150.0100.06719.01
5.4.140.0030.05316.43
5.4.130.0070.05016.55
5.4.120.0070.04716.30
5.4.110.0030.05316.53
5.4.100.0130.04316.50
5.4.90.0100.04716.65
5.4.80.0130.04316.46
5.4.70.0130.04316.51
5.4.60.0100.04716.49
5.4.50.0030.05316.54
5.4.40.0100.05016.52
5.4.30.0100.04716.38
5.4.20.0130.04716.35
5.4.10.0100.05016.48
5.4.00.0000.05315.95
5.3.290.0060.03912.80
5.3.280.0130.04314.82
5.3.270.0070.05014.62
5.3.260.0030.05714.51
5.3.250.0070.05314.53
5.3.240.0100.05014.77
5.3.230.0070.05714.66
5.3.220.0100.05714.74
5.3.210.0100.05714.55
5.3.200.0070.05014.55
5.3.190.0100.04714.58
5.3.180.0130.04314.74
5.3.170.0130.04014.61
5.3.160.0030.05314.46
5.3.150.0130.04314.39
5.3.140.0000.05314.64
5.3.130.0000.05714.53
5.3.120.0070.05314.63
5.3.110.0100.05314.56
5.3.100.0130.04713.94
5.3.90.0170.04014.05
5.3.80.0100.05014.11
5.3.70.0000.05314.05
5.3.60.0070.04714.18
5.3.50.0030.05013.93
5.3.40.0070.05013.94
5.3.30.0100.05013.89
5.3.20.0230.04313.91
5.3.10.0070.04313.68
5.3.00.0100.04713.65
5.2.170.0070.04011.20
5.2.160.0100.03711.10
5.2.150.0030.06711.36
5.2.140.0000.04710.96
5.2.130.0070.04011.16
5.2.120.0100.03711.18
5.2.110.0100.03310.92
5.2.100.0000.04311.18
5.2.90.0070.04710.92
5.2.80.0030.04311.09
5.2.70.0030.04011.16
5.2.60.0070.03711.04
5.2.50.0000.04711.00
5.2.40.0030.04011.08
5.2.30.0070.03711.19
5.2.20.0070.03711.13
5.2.10.0100.03310.82
5.2.00.0000.04310.67
5.1.60.0070.03010.07
5.1.50.0030.0339.95
5.1.40.0100.0309.81
5.1.30.0030.03710.33
5.1.20.0070.03310.51
5.1.10.0130.02310.07
5.1.00.0030.03710.02
5.0.50.0030.0308.50
5.0.40.0030.0278.38
5.0.30.0030.0408.30
5.0.20.0070.0208.39
5.0.10.0000.0278.22
5.0.00.0030.0408.39
4.4.90.0070.0277.32
4.4.80.0070.0207.32
4.4.70.0000.0237.32
4.4.60.0030.0207.32
4.4.50.0030.0207.32
4.4.40.0070.0277.32
4.4.30.0000.0237.32
4.4.20.0030.0207.32
4.4.10.0030.0207.32
4.4.00.0030.0307.32
4.3.110.0100.0177.32
4.3.100.0070.0307.32
4.3.90.0030.0177.32
4.3.80.0000.0407.32
4.3.70.0000.0277.32
4.3.60.0030.0277.32
4.3.50.0000.0277.32
4.3.40.0000.0337.32
4.3.30.0070.0177.32
4.3.20.0030.0307.32
4.3.10.0000.0237.32
4.3.00.0070.0277.30

preferences:
53.87 ms | 401 KiB | 5 Q