3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar extends Foo {} class FooCreator { public function create(FooAlias $foo) { } } class_alias('Foo', 'FooAlias'); $foo = new Bar; $creator = new FooCreator(); $creator->create($foo); hint_for_alias($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.3.60.0040.01116.88
8.3.50.0110.00718.20
8.3.40.0070.01018.79
8.3.30.0040.01118.84
8.3.20.0050.00320.14
8.3.10.0000.00823.52
8.3.00.0030.00519.38
8.2.180.0120.00325.92
8.2.170.0120.00318.70
8.2.160.0140.00022.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0050.00320.51
8.2.120.0070.00026.35
8.2.110.0090.00020.93
8.2.100.0120.00317.91
8.2.90.0030.00617.78
8.2.80.0060.00318.22
8.2.70.0050.00317.50
8.2.60.0040.00417.75
8.2.50.0040.00417.55
8.2.40.0040.00419.35
8.2.30.0030.00620.61
8.2.20.0030.00717.74
8.2.10.0040.00418.00
8.2.00.0040.00417.86
8.1.280.0160.00325.92
8.1.270.0050.00523.79
8.1.260.0020.00528.09
8.1.250.0080.00028.09
8.1.240.0090.00323.73
8.1.230.0090.00320.87
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0080.00017.35
8.1.190.0060.00317.38
8.1.180.0050.00318.10
8.1.170.0000.00718.77
8.1.160.0000.00822.02
8.1.150.0030.00318.70
8.1.140.0050.00319.52
8.1.130.0030.00317.55
8.1.120.0050.00217.47
8.1.110.0020.00517.29
8.1.100.0030.00617.46
8.1.90.0000.00717.39
8.1.80.0040.00417.41
8.1.70.0040.00417.38
8.1.60.0060.00317.54
8.1.50.0050.00317.39
8.1.40.0100.00317.52
8.1.30.0000.00817.55
8.1.20.0000.00717.63
8.1.10.0000.00817.57
8.1.00.0060.00317.59
8.0.300.0090.00019.98
8.0.290.0080.00016.75
8.0.280.0030.00318.38
8.0.270.0000.00717.20
8.0.260.0030.00517.15
8.0.250.0030.00317.02
8.0.240.0000.00716.97
8.0.230.0030.00516.83
8.0.220.0030.00316.93
8.0.210.0000.00716.89
8.0.200.0030.00316.96
8.0.190.0000.00816.99
8.0.180.0040.00416.79
8.0.170.0070.00016.96
8.0.160.0030.00316.80
8.0.150.0040.00416.88
8.0.140.0000.00816.81
8.0.130.0000.00513.32
8.0.120.0040.00416.88
8.0.110.0070.00016.93
8.0.100.0070.00016.71
8.0.90.0000.00716.87
8.0.80.0070.01016.94
8.0.70.0000.00816.76
8.0.60.0000.00816.94
8.0.50.0070.00016.79
8.0.30.0150.00517.31
8.0.20.0080.01117.40
8.0.10.0070.00016.98
8.0.00.0040.01416.85
7.4.330.0030.00316.79
7.4.320.0060.00016.50
7.4.300.0000.00616.47
7.4.290.0030.00316.44
7.4.280.0000.00916.61
7.4.270.0040.00416.65
7.4.260.0000.00916.51
7.4.250.0000.00816.48
7.4.240.0020.00516.52
7.4.230.0000.00716.58
7.4.220.0200.00316.67
7.4.210.0070.01016.52
7.4.200.0040.00316.51
7.4.160.0120.00316.49
7.4.150.0080.01117.40
7.4.140.0050.01217.86
7.4.130.0150.00716.56
7.4.120.0110.00816.52
7.4.110.0030.01416.32
7.4.100.0080.01516.58
7.4.90.0190.00316.55
7.4.80.0160.00619.39
7.4.70.0080.00816.55
7.4.60.0030.01316.66
7.4.50.0060.00616.40
7.4.40.0130.00316.64
7.4.30.0060.00916.59
7.4.00.0040.01214.75
7.3.330.0000.00613.32
7.3.320.0000.00513.39
7.3.310.0040.00416.18
7.3.300.0030.00316.37
7.3.290.0040.00416.36
7.3.280.0060.01016.35
7.3.270.0120.00617.40
7.3.260.0060.01016.63
7.3.250.0110.01016.36
7.3.240.0130.00716.25
7.3.230.0060.01216.53
7.3.210.0090.01016.43
7.3.200.0060.01016.35
7.3.190.0040.01116.36
7.3.180.0060.01016.33
7.3.170.0120.00616.42
7.3.160.0090.01216.27
7.2.330.0080.01216.62
7.2.320.0100.00716.36
7.2.310.0100.00716.72
7.2.300.0160.00716.41
7.2.290.0100.00716.35
7.2.60.0000.01416.89
7.2.00.0070.00319.43
7.1.200.0090.00415.71
7.1.100.0000.01117.84
7.1.70.0080.00817.06
7.1.60.0100.01319.36
7.1.50.0070.01416.57
7.1.00.0070.07322.44
7.0.200.0030.00616.63
7.0.60.0100.07020.01
7.0.50.0030.08317.98
7.0.40.0100.06719.96
7.0.30.0300.07320.09
7.0.20.0370.06020.08
7.0.10.0100.07320.33
7.0.00.0070.04320.23
5.6.280.0100.06720.79
5.6.210.0100.04320.48
5.6.200.0100.07718.19
5.6.190.0030.04720.46
5.6.180.0630.06020.77
5.6.170.0200.05020.44
5.6.160.0100.05720.44
5.6.150.0030.07018.17
5.6.140.0030.06018.28
5.6.130.0030.06018.16
5.6.120.0030.08720.99
5.6.110.0070.04021.09
5.6.100.0070.08321.01
5.6.90.0170.06020.96
5.6.80.0070.08020.43
5.5.350.0270.07020.43
5.5.340.0100.07718.01
5.5.330.0070.07020.29
5.5.320.0030.04020.34
5.5.310.0330.07320.18
5.5.300.0000.06317.97
5.5.290.0070.06717.95
5.5.280.0170.06020.80
5.5.270.0000.04320.87
5.5.260.0000.04320.68
5.5.250.0000.08720.68
5.5.240.0270.07720.16

preferences:
41.61 ms | 400 KiB | 5 Q