3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function() { var_dump(func_get_args()); }); class Foo {} class Bar extends Foo {} class FooCreator { public function create(FooAlias $foo) { } } $foo = new Bar; $creator = new FooCreator(); $creator->create($foo); class_alias('Foo', 'FooAlias');

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.0040.01118.55
8.3.50.0140.00422.05
8.3.40.0140.00318.96
8.3.30.0110.00418.62
8.3.20.0070.00020.38
8.3.10.0080.00023.30
8.3.00.0040.00419.25
8.2.180.0110.00716.63
8.2.170.0110.00422.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0070.00724.66
8.2.130.0080.00020.53
8.2.120.0000.00826.35
8.2.110.0030.00722.08
8.2.100.0130.00018.03
8.2.90.0050.00317.84
8.2.80.0040.00419.11
8.2.70.0050.00317.63
8.2.60.0000.00817.48
8.2.50.0040.00418.07
8.2.40.0050.00319.39
8.2.30.0030.00620.64
8.2.20.0030.00617.86
8.2.10.0040.00417.95
8.2.00.0000.00817.95
8.1.280.0070.01425.92
8.1.270.0000.00923.92
8.1.260.0000.00828.09
8.1.250.0090.00028.09
8.1.240.0090.00923.84
8.1.230.0040.00822.86
8.1.220.0090.00017.74
8.1.210.0060.00318.77
8.1.200.0090.00017.25
8.1.190.0000.00817.38
8.1.180.0000.00918.10
8.1.170.0040.00418.66
8.1.160.0070.00022.08
8.1.150.0000.00718.86
8.1.140.0050.00319.58
8.1.130.0000.00717.72
8.1.120.0000.00717.57
8.1.110.0040.00417.53
8.1.100.0000.01017.33
8.1.90.0000.00717.39
8.1.80.0040.00417.37
8.1.70.0030.00317.46
8.1.60.0040.00417.61
8.1.50.0060.00317.50
8.1.40.0060.00617.53
8.1.30.0040.00417.64
8.1.20.0000.00717.64
8.1.10.0000.00917.62
8.1.00.0040.00417.57
8.0.300.0000.00722.09
8.0.290.0000.00816.75
8.0.280.0040.00418.39
8.0.270.0050.00317.23
8.0.260.0000.00817.21
8.0.250.0030.00316.97
8.0.240.0000.00717.02
8.0.230.0040.00416.96
8.0.220.0000.00716.83
8.0.210.0040.00416.82
8.0.200.0040.00417.03
8.0.190.0080.00016.93
8.0.180.0030.00517.02
8.0.170.0000.00816.97
8.0.160.0000.00717.03
8.0.150.0070.00016.82
8.0.140.0000.00816.81
8.0.130.0000.00513.39
8.0.120.0000.00816.84
8.0.110.0000.00716.93
8.0.100.0040.00416.87
8.0.90.0040.00416.97
8.0.80.0030.01216.96
8.0.70.0000.00717.02
8.0.60.0040.00416.81
8.0.50.0000.00716.97
8.0.30.0140.00617.07
8.0.20.0110.00717.40
8.0.10.0000.00717.16
8.0.00.0150.00416.88
7.4.330.0020.00216.67
7.4.320.0000.00616.52
7.4.300.0060.00016.55
7.4.290.0000.00716.67
7.4.280.0080.00016.63
7.4.270.0000.00716.58
7.4.260.0050.00316.58
7.4.250.0020.00516.59
7.4.240.0030.00316.44
7.4.230.0040.00416.71
7.4.220.0040.01116.38
7.4.210.0060.00916.65
7.4.200.0030.00316.74
7.4.160.0070.00716.52
7.4.150.0110.00717.40
7.4.140.0090.00917.86
7.4.130.0090.00916.61
7.4.120.0090.00816.55
7.4.110.0180.00016.45
7.4.100.0120.01216.56
7.4.90.0090.00916.49
7.4.80.0110.01319.39
7.4.70.0090.01216.54
7.4.60.0070.01016.70
7.4.50.0110.00316.63
7.4.40.0030.01416.49
7.4.30.0070.01016.63
7.4.00.0100.00714.89
7.3.330.0000.00613.37
7.3.320.0050.00013.34
7.3.310.0040.00416.40
7.3.300.0070.00016.29
7.3.290.0040.00416.24
7.3.280.0070.01116.38
7.3.270.0090.00917.40
7.3.260.0150.00316.33
7.3.250.0090.01016.39
7.3.240.0100.00816.42
7.3.230.0090.00916.55
7.3.210.0030.01316.45
7.3.200.0140.00516.25
7.3.190.0060.01016.62
7.3.180.0060.00916.43
7.3.170.0070.01516.48
7.3.160.0050.01116.41
7.2.330.0060.01216.63
7.2.320.0110.00716.50
7.2.310.0170.00016.77
7.2.300.0060.01516.32
7.2.290.0140.00316.66
7.2.60.0100.00316.93
7.2.00.0030.01319.54
7.1.200.0000.01215.71
7.1.100.0040.00417.84
7.1.70.0090.00417.16
7.1.60.0170.00719.36
7.1.50.0090.01316.58
7.1.00.0000.08022.54
7.0.200.0000.01116.88
7.0.60.0070.08020.00
7.0.50.0070.04717.91
7.0.40.0130.08719.96
7.0.30.0300.07720.30
7.0.20.0300.04020.06
7.0.10.0100.08320.05
7.0.00.0030.04020.16
5.6.280.0030.06321.12
5.6.210.0130.07320.62
5.6.200.0100.08018.18
5.6.190.0130.07720.60
5.6.180.0500.07020.52
5.6.170.0270.07720.56
5.6.160.0100.08020.54
5.6.150.0030.05018.12
5.6.140.0070.06718.16
5.6.130.0000.07318.17
5.6.120.0130.06721.09
5.6.110.0130.05721.12
5.6.100.0070.05321.14
5.6.90.0070.08721.19
5.6.80.0070.07720.29
5.5.350.0300.06720.34
5.5.340.0030.08018.00
5.5.330.0000.09320.21
5.5.320.0000.04020.26
5.5.310.0300.07720.23
5.5.300.0130.07717.94
5.5.290.0130.05318.08
5.5.280.0030.08720.77
5.5.270.0100.08020.77
5.5.260.0100.08020.77
5.5.250.0130.07720.47
5.5.240.0230.06020.23

preferences:
48.06 ms | 401 KiB | 5 Q