3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class Foo { public function __construct() { function do_foo() { echo __FUNCTION__, "\n"; } function do_bar() { echo __FUNCTION__, "\n"; } } } function foobar() { echo __FUNCTION__, "\n"; } } namespace bar { use foo as f; new f\Foo(); f\do_foo(); use function foo\foobar; foobar(); }

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.0170.00016.75
8.3.60.0120.00918.16
8.3.50.0100.00922.10
8.3.40.0140.00418.84
8.3.30.0120.00319.08
8.3.20.0040.00420.16
8.3.10.0080.00021.77
8.3.00.0030.00622.50
8.2.180.0120.00316.50
8.2.170.0100.01022.96
8.2.160.0100.00321.00
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0060.00619.64
8.2.110.0040.00422.27
8.2.100.0040.00819.51
8.2.90.0030.00619.17
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0000.00817.65
8.2.50.0030.00518.07
8.2.40.0040.00418.09
8.2.30.0030.00717.89
8.2.20.0040.00417.47
8.2.10.0000.00719.28
8.2.00.0050.00217.49
8.1.280.0070.00725.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.80
8.1.230.0000.01119.00
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00917.00
8.1.190.0000.00717.53
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0040.00421.90
8.1.150.0000.00718.59
8.1.140.0040.00417.38
8.1.130.0030.00317.68
8.1.120.0000.00817.46
8.1.110.0080.00017.30
8.1.100.0000.00717.40
8.1.90.0030.00417.25
8.1.80.0000.00717.29
8.1.70.0030.00317.29
8.1.60.0000.00817.51
8.1.50.0000.00717.46
8.1.40.0040.00417.28
8.1.30.0040.00417.59
8.1.20.0000.00817.51
8.1.10.0090.00017.48
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0070.00018.46
8.0.270.0040.00417.27
8.0.260.0000.00616.70
8.0.250.0000.00816.98
8.0.240.0000.00916.81
8.0.230.0050.00216.91
8.0.220.0040.00416.88
8.0.210.0030.00316.87
8.0.200.0030.00616.79
8.0.190.0000.00716.77
8.0.180.0040.00416.87
8.0.170.0020.00516.81
8.0.160.0050.00216.75
8.0.150.0030.00416.75
8.0.140.0060.00316.67
8.0.130.0060.00013.33
8.0.120.0000.00816.71
8.0.110.0000.00716.76
8.0.100.0000.00816.63
8.0.90.0040.00416.96
8.0.80.0060.00916.88
8.0.70.0070.00016.89
8.0.60.0070.00016.75
8.0.50.0040.00416.85
8.0.30.0080.01117.08
8.0.20.0110.01117.40
8.0.10.0040.00416.85
8.0.00.0140.00316.69
7.4.330.0050.00015.00
7.4.320.0030.00316.45
7.4.300.0040.00416.34
7.4.290.0040.00416.46
7.4.280.0030.00316.37
7.4.270.0040.00416.45
7.4.260.0070.00316.57
7.4.250.0000.00816.48
7.4.240.0040.00416.39
7.4.230.0040.00416.35
7.4.220.0090.00916.48
7.4.210.0090.00716.49
7.4.200.0000.00716.42
7.4.190.0070.00016.50
7.4.160.0070.01516.42
7.4.150.0100.00717.40
7.4.140.0070.01117.86
7.4.130.0050.01116.49
7.4.120.0100.00716.54
7.4.110.0100.00716.47
7.4.100.0060.01916.39
7.4.90.0040.01816.45
7.4.80.0090.01319.39
7.4.70.0100.00616.39
7.4.60.0040.01316.43
7.4.50.0060.00316.35
7.4.40.0080.00922.77
7.4.30.0060.01216.45
7.4.00.0030.00614.96
7.3.330.0060.00013.07
7.3.320.0030.00313.15
7.3.310.0000.00716.32
7.3.300.0000.00716.12
7.3.290.0120.00616.30
7.3.280.0100.01016.30
7.3.270.0100.00717.40
7.3.260.0040.01416.29
7.3.250.0080.01116.47
7.3.240.0130.01016.34
7.3.230.0080.00816.39
7.3.210.0140.00316.34
7.3.200.0120.00919.39
7.3.190.0110.01116.27
7.3.180.0070.01016.57
7.3.170.0130.00516.48
7.3.160.0120.00416.36
7.3.120.0060.01214.67
7.2.330.0100.01016.33
7.2.320.0000.01916.35
7.2.310.0120.00716.31
7.2.300.0090.00616.62
7.2.290.0040.01216.77
7.2.00.0030.01019.09
7.1.200.0090.00615.51
7.1.100.0030.01018.08
7.1.70.0000.00916.71
7.1.60.0070.00719.82
7.1.50.0120.00916.66
7.1.00.0100.07022.35
7.0.200.0000.01016.63
7.0.140.0130.06322.07
7.0.60.0030.06720.00
7.0.50.0030.06717.88
7.0.40.0070.05720.11
7.0.30.0270.06320.16
7.0.20.0170.06020.19
7.0.10.0070.09020.11
7.0.00.0000.08020.22
5.6.280.0030.07020.83
5.6.210.0070.06020.73
5.6.200.0100.07018.27
5.6.190.0100.08320.48
5.6.180.0100.07320.52
5.6.170.0270.05020.47
5.6.160.0070.05720.46
5.6.150.0030.03718.18
5.6.140.0070.03718.16
5.6.130.0100.08018.28
5.6.120.0030.04021.16
5.6.110.0100.04721.12
5.6.100.0130.06020.89
5.6.90.0200.06720.98
5.6.80.0100.07020.42
5.5.350.0130.03320.53
5.5.340.0070.07717.95
5.5.330.0000.05020.38
5.5.320.0230.05020.30
5.5.310.0270.09020.24
5.5.300.0070.07318.03
5.5.290.0100.08017.99
5.5.280.0000.09720.88
5.5.270.0030.08720.87
5.5.260.0070.03720.77
5.5.250.0130.07720.59
5.5.240.0000.04320.24
5.4.450.0570.03019.55
5.4.440.0370.03319.52
5.4.430.0230.04719.48
5.4.420.0530.04319.20
5.4.410.0100.05319.02
5.4.400.0170.04318.85
5.4.390.0100.05318.54
5.4.380.0370.04318.48
5.4.370.0230.04318.74
5.4.360.0330.03318.50
5.4.350.0230.05018.50
5.4.340.0170.05018.78
5.4.320.0040.03812.52
5.4.310.0040.04012.52
5.4.300.0050.03712.52
5.4.290.0070.03912.52
5.4.280.0050.03612.41
5.4.270.0100.07319.00
5.4.260.0100.05318.92
5.4.250.0030.06319.22
5.4.240.0130.07318.95
5.4.230.0070.05719.07
5.4.220.0170.06319.14
5.4.210.0100.06718.91
5.4.200.0070.06718.99
5.4.190.0230.06718.94
5.4.180.0100.06018.82
5.4.170.0200.06318.94
5.4.160.0170.05719.01
5.4.150.0100.05719.08
5.4.140.0170.07016.66
5.4.130.0030.05316.56
5.4.120.0130.04316.76
5.4.110.0070.07716.73
5.4.100.0100.04716.47
5.4.90.0100.06316.72
5.4.80.0200.04016.69
5.4.70.0170.06316.66
5.4.60.0100.06316.60
5.4.50.0170.06016.66
5.4.40.0070.06016.51
5.4.30.0100.07016.66
5.4.20.0070.05316.48
5.4.10.0200.05316.66
5.4.00.0030.06016.06
5.3.290.0060.03912.80
5.3.280.0170.05314.79
5.3.270.0000.06714.81
5.3.260.0070.08014.91
5.3.250.0100.06014.80
5.3.240.0170.06714.84
5.3.230.0130.06714.89
5.3.220.0000.07014.87
5.3.210.0100.06714.76
5.3.200.0130.05014.85
5.3.190.0230.06014.63
5.3.180.0070.05714.86
5.3.170.0100.06014.63
5.3.160.0130.05014.47
5.3.150.0130.06314.85
5.3.140.0130.04714.86
5.3.130.0070.07314.83
5.3.120.0030.06014.61
5.3.110.0070.07314.82
5.3.100.0200.06014.34
5.3.90.0100.05014.23
5.3.80.0070.05314.29
5.3.70.0000.07714.24
5.3.60.0330.04314.06
5.3.50.0200.04314.27
5.3.40.0130.04713.86
5.3.30.0030.07314.10
5.3.20.0100.05313.96
5.3.10.0170.04313.71
5.3.00.0070.07313.64
5.2.170.0070.04311.09
5.2.160.0100.04711.26
5.2.150.0070.04711.13
5.2.140.0070.06011.36
5.2.130.0030.04311.17
5.2.120.0030.04711.20
5.2.110.0030.05311.24
5.2.100.0130.05311.24
5.2.90.0130.05011.14
5.2.80.0130.04311.30
5.2.70.0000.05311.03
5.2.60.0170.03311.05
5.2.50.0030.04711.00
5.2.40.0000.06311.20
5.2.30.0130.05711.10
5.2.20.0100.03710.91
5.2.10.0100.04711.16
5.2.00.0100.03711.02
5.1.60.0100.05310.14
5.1.50.0100.04010.31
5.1.40.0030.04010.05
5.1.30.0100.04310.46
5.1.20.0070.04010.35
5.1.10.0070.04310.36
5.1.00.0000.05310.04
5.0.50.0070.0278.52
5.0.40.0030.0338.44
5.0.30.0070.0478.42
5.0.20.0070.0408.42
5.0.10.0100.0338.36
5.0.00.0000.0438.36
4.4.90.0030.0236.56
4.4.80.0100.0236.56
4.4.70.0030.0336.56
4.4.60.0000.0276.56
4.4.50.0100.0206.56
4.4.40.0070.0336.56
4.4.30.0070.0306.56
4.4.20.0000.0276.56
4.4.10.0070.0176.56
4.4.00.0130.0236.56
4.3.110.0070.0276.56
4.3.100.0070.0236.56
4.3.90.0030.0236.56
4.3.80.0100.0306.56
4.3.70.0030.0206.56
4.3.60.0000.0336.56
4.3.50.0070.0236.56
4.3.40.0100.0406.56
4.3.30.0000.0276.56
4.3.20.0100.0176.56
4.3.10.0070.0276.56
4.3.00.0070.01315.59

preferences:
37.32 ms | 401 KiB | 5 Q