3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function bar(); } class Baz implements Foo { public function bar($args = null ) { var_dump('määäh'); } } $baz = new Baz; $baz->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.70.0070.01418.31
8.3.60.0140.00018.43
8.3.50.0160.00121.92
8.3.40.0090.00918.77
8.3.30.0170.00318.96
8.3.20.0060.00320.39
8.3.10.0040.00423.46
8.3.00.0040.00419.12
8.2.190.0160.00018.54
8.2.180.0100.00716.50
8.2.170.0110.00422.96
8.2.160.0100.00720.35
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00622.06
8.2.110.0100.00022.30
8.2.100.0070.00417.78
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0000.00918.14
8.2.30.0040.00418.01
8.2.20.0040.00417.61
8.2.10.0030.00518.06
8.2.00.0000.00717.59
8.1.280.0070.01125.92
8.1.270.0000.00823.92
8.1.260.0030.00626.35
8.1.250.0000.00828.09
8.1.240.0100.00017.36
8.1.230.0110.00018.97
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0050.00517.23
8.1.180.0080.00018.10
8.1.170.0060.00318.61
8.1.160.0000.00821.92
8.1.150.0070.00018.76
8.1.140.0030.00517.51
8.1.130.0030.00317.86
8.1.120.0040.00417.51
8.1.110.0050.00317.30
8.1.100.0000.00717.50
8.1.90.0070.00417.49
8.1.80.0070.00017.43
8.1.70.0000.00817.40
8.1.60.0030.00617.48
8.1.50.0040.00417.54
8.1.40.0000.00717.57
8.1.30.0000.00817.68
8.1.20.0040.00417.55
8.1.10.0060.00317.51
8.1.00.0000.00817.44
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0030.00317.17
8.0.260.0000.00617.19
8.0.250.0030.00316.96
8.0.240.0000.00716.95
8.0.230.0070.00016.93
8.0.220.0030.00316.76
8.0.210.0040.00416.90
8.0.200.0060.00016.84
8.0.190.0000.00816.99
8.0.180.0070.00016.97
8.0.170.0040.00416.89
8.0.160.0000.00716.94
8.0.150.0000.00716.79
8.0.140.0000.00716.85
8.0.130.0030.00313.35
8.0.120.0050.00316.92
8.0.110.0000.00816.84
8.0.100.0000.00716.91
8.0.90.0000.00716.89
8.0.80.0090.00616.87
8.0.70.0040.00416.85
8.0.60.0000.00716.71
8.0.50.0000.00716.93
8.0.30.0090.01116.92
8.0.20.0110.00717.40
8.0.10.0000.00717.07
8.0.00.0090.00816.67
7.4.330.0000.00815.02
7.4.320.0060.00016.46
7.4.300.0030.00316.59
7.4.290.0000.00716.57
7.4.280.0070.00016.50
7.4.270.0030.00316.51
7.4.260.0030.00316.58
7.4.250.0000.00716.49
7.4.240.0020.00516.52
7.4.230.0030.00316.62
7.4.220.0110.00716.45
7.4.210.0030.01616.49
7.4.200.0030.00316.41
7.4.160.0110.00616.54
7.4.150.0070.01317.40
7.4.140.0100.00817.86
7.4.130.0100.01016.48
7.4.120.0020.01616.50
7.4.110.0080.00816.57
7.4.100.0140.00416.53
7.4.90.0080.00816.47
7.4.80.0220.00319.39
7.4.70.0120.00616.54
7.4.60.0160.00716.46
7.4.50.0020.00216.70
7.4.40.0070.01016.36
7.4.30.0100.01116.35
7.4.00.0040.01414.86
7.3.330.0060.00013.18
7.3.320.0060.00013.10
7.3.310.0040.00416.24
7.3.300.0030.00416.22
7.3.290.0080.00616.24
7.3.280.0080.00916.23
7.3.270.0100.01417.40
7.3.260.0030.01316.29
7.3.250.0140.00616.38
7.3.240.0110.00616.30
7.3.230.0030.01416.41
7.3.210.0070.01016.35
7.3.200.0100.00519.39
7.3.190.0120.00416.51
7.3.180.0090.00616.20
7.3.170.0110.00416.27
7.3.160.0130.00316.25
7.3.10.0120.00615.95
7.3.00.0060.00616.13
7.2.330.0110.01116.55
7.2.320.0080.00816.40
7.2.310.0150.00016.62
7.2.300.0070.01116.52
7.2.290.0150.00616.44
7.2.130.0030.01316.12
7.2.120.0060.00616.43
7.2.110.0090.00616.21
7.2.100.0100.00616.59
7.2.90.0030.00916.33
7.2.80.0140.00416.61
7.2.70.0170.01216.33
7.2.60.0140.01416.59
7.2.50.0100.00616.13
7.2.40.0090.00916.65
7.2.30.0200.00816.50
7.2.20.0150.00816.31
7.2.10.0100.01316.56
7.2.00.0070.00617.76
7.1.250.0060.01215.30
7.1.100.0030.01018.00
7.1.70.0060.00316.94
7.1.60.0040.02219.32
7.1.50.0040.01116.86
7.1.00.0070.07322.37
7.0.200.0030.00716.65
7.0.140.0030.07322.02
7.0.60.0000.04319.89
7.0.50.0030.07717.87
7.0.40.0270.04320.40
7.0.30.0230.05320.06
7.0.20.0170.05720.07
7.0.10.0100.08320.30
7.0.00.0070.09320.29
5.6.280.0000.07721.11
5.6.210.0000.04720.50
5.6.200.0030.07718.13
5.6.190.0130.04020.61
5.6.180.0500.07320.59
5.6.170.0300.07320.50
5.6.160.0070.08020.54
5.6.150.0070.08718.17
5.6.140.0100.03318.17
5.6.130.0170.05018.24
5.6.120.0200.05321.14
5.6.110.0030.06321.09
5.6.100.0030.04720.99
5.6.90.0170.07321.00
5.6.80.0030.04020.39
5.5.350.0000.08320.34
5.5.340.0170.07317.92
5.5.330.0100.09020.19
5.5.320.0000.07020.27
5.5.310.0200.04320.26
5.5.300.0130.05018.08
5.5.290.0100.07717.98
5.5.280.0100.06020.77
5.5.270.0030.07320.89
5.5.260.0070.08020.80
5.5.250.0130.06320.59
5.5.240.0200.07320.14
5.4.450.0370.05019.47
5.4.440.0570.03019.55
5.4.430.0370.05019.26
5.4.420.0330.03719.38
5.4.410.0430.03719.51
5.4.400.0370.04719.17
5.4.390.0370.03719.14
5.4.380.0370.05019.10
5.4.370.0430.05019.09
5.4.360.0530.04318.87
5.4.350.0470.04319.09
5.4.340.0430.06019.16
5.4.320.0330.04719.06
5.4.310.0400.03718.98
5.4.300.0400.04019.22
5.4.290.0330.05319.16
5.4.280.0300.03318.99
5.4.270.0330.03319.16
5.4.260.0400.07019.24
5.4.250.0330.03319.21
5.4.240.0470.05019.05
5.4.230.0530.06318.85
5.4.220.0530.06019.14
5.4.210.0470.04319.15
5.4.200.0430.04719.20
5.4.190.0400.03319.15
5.4.180.0370.04018.98
5.4.170.0430.06719.14
5.4.160.0470.06018.83
5.4.150.0530.06719.29
5.4.140.0430.06716.36
5.4.130.0400.05716.37
5.4.120.0530.05016.50
5.4.110.0270.04316.55
5.4.100.0400.06316.29
5.4.90.0370.03316.54
5.4.80.0470.06316.52
5.4.70.0430.03316.55
5.4.60.0500.05716.43
5.4.50.0270.04316.52
5.4.40.0500.04016.16
5.4.30.0300.03316.56
5.4.20.0330.05316.42
5.4.10.0170.06316.32
5.4.00.0130.06315.78
5.3.290.0270.05014.68
5.3.280.0470.06014.81
5.3.270.0470.06014.58
5.3.260.0470.03314.68
5.3.250.0470.06714.60
5.3.240.0400.04314.68
5.3.230.0430.05714.68
5.3.220.0500.05014.47
5.3.210.0400.05714.57
5.3.200.0370.06714.54
5.3.190.0430.06714.64
5.3.180.0300.04314.55
5.3.170.0470.04714.48
5.3.160.0470.06014.54
5.3.150.0470.03714.56
5.3.140.0370.07014.48
5.3.130.0470.04714.55
5.3.120.0370.07014.60
5.3.110.0330.05714.45
5.3.100.0270.02713.94
5.3.90.0200.07714.01
5.3.80.0330.06713.94
5.3.70.0400.03713.95
5.3.60.0330.03714.01
5.3.50.0370.07014.11
5.3.40.0400.07313.88
5.3.30.0370.05013.98
5.3.20.0300.03713.77
5.3.10.0370.04313.57
5.3.00.0270.03713.65
5.2.170.0230.04311.07
5.2.160.0370.03311.09
5.2.150.0370.04711.28
5.2.140.0330.03311.05
5.2.130.0200.03311.02
5.2.120.0270.02711.09
5.2.110.0270.03311.02
5.2.100.0300.02311.11
5.2.90.0330.03311.11
5.2.80.0300.03311.26
5.2.70.0270.02711.07
5.2.60.0230.03011.13
5.2.50.0230.03011.13
5.2.40.0270.03011.16
5.2.30.0230.02711.20
5.2.20.0230.03310.94
5.2.10.0230.04010.84
5.2.00.0270.05710.72
5.1.60.0370.03710.15
5.1.50.0300.0279.98
5.1.40.0370.03310.06
5.1.30.0200.03310.45
5.1.20.0300.05010.26
5.1.10.0370.02310.21
5.1.00.0300.03710.06
5.0.50.0170.0178.83
5.0.40.0200.0178.83
5.0.30.0170.0278.83
5.0.20.0170.0238.83
5.0.10.0200.0208.83
5.0.00.0230.0438.83
4.4.90.0100.0178.83
4.4.80.0070.0178.83
4.4.70.0130.0338.83
4.4.60.0130.0208.83
4.4.50.0170.0238.83
4.4.40.0130.0378.83
4.4.30.0130.0138.83
4.4.20.0300.0138.83
4.4.10.0200.0138.83
4.4.00.0200.0338.83
4.3.110.0100.0178.83
4.3.100.0170.0208.83
4.3.90.0200.0108.83
4.3.80.0170.0478.83
4.3.70.0170.0278.83
4.3.60.0130.0308.83
4.3.50.0200.0308.83
4.3.40.0130.0378.83
4.3.30.0130.0308.83
4.3.20.0100.0178.83
4.3.10.0100.0338.83
4.3.00.0070.0208.83

preferences:
71.1 ms | 401 KiB | 5 Q