3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class Bar {} } namespace Foo\Legacy { class Bar extends \Foo\Bar {} } namespace { class_alias("\Foo\Bar", "\Foo\Alias\Bar"); $b = new \Foo\Alias\Bar; var_dump(serialize(new \Foo\Alias\Bar)); var_dump(serialize(new \Foo\Legacy\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.40.0090.00618.42
8.3.30.0090.00619.04
8.3.20.0080.00020.19
8.3.10.0140.00021.89
8.3.00.0030.00519.26
8.2.170.0070.00722.96
8.2.160.0100.00720.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0110.00426.16
8.2.120.0110.00719.53
8.2.110.0140.00321.11
8.2.100.0080.00317.50
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0070.00017.80
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0000.00717.88
8.2.20.0030.00517.62
8.2.10.0040.00418.05
8.2.00.0040.00417.61
8.1.270.0040.00418.57
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.92
8.1.230.0120.00018.83
8.1.220.0030.00617.74
8.1.210.0050.00218.77
8.1.200.0060.00317.22
8.1.190.0040.00417.10
8.1.180.0070.00318.10
8.1.170.0060.00320.27
8.1.160.0040.00422.00
8.1.150.0030.00518.82
8.1.140.0040.00417.25
8.1.130.0040.00417.82
8.1.120.0040.00717.34
8.1.110.0000.00717.39
8.1.100.0000.00817.23
8.1.90.0000.00717.37
8.1.80.0040.00417.38
8.1.70.0040.00417.31
8.1.60.0050.00317.56
8.1.50.0030.00617.41
8.1.40.0050.00317.42
8.1.30.0000.00817.54
8.1.20.0040.00417.53
8.1.10.0070.00017.46
8.1.00.0020.00517.46
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0030.00318.38
8.0.270.0070.00016.66
8.0.260.0000.00617.10
8.0.250.0000.00716.91
8.0.240.0060.00016.92
8.0.230.0070.00016.84
8.0.220.0000.00716.77
8.0.210.0030.00316.81
8.0.200.0060.00316.75
8.0.190.0040.00416.89
8.0.180.0030.00516.86
8.0.170.0040.00416.89
8.0.160.0030.00316.84
8.0.150.0070.00016.89
8.0.140.0070.00016.79
8.0.130.0020.00513.14
8.0.120.0040.00416.80
8.0.110.0070.00016.70
8.0.100.0080.00016.68
8.0.90.0000.00816.84
8.0.80.0070.01616.83
8.0.70.0030.00516.88
8.0.60.0060.00316.70
8.0.50.0040.00416.69
8.0.30.0110.00917.05
8.0.20.0190.01517.40
8.0.10.0070.00017.01
8.0.00.0080.00916.58
7.4.330.0050.00015.09
7.4.320.0030.00316.45
7.4.300.0070.00016.41
7.4.290.0080.00016.48
7.4.280.0030.00316.51
7.4.270.0030.00316.44
7.4.260.0050.00316.41
7.4.250.0060.00316.54
7.4.240.0040.00316.50
7.4.230.0000.00716.25
7.4.220.0070.01116.46
7.4.210.0080.00816.48
7.4.200.0040.00416.33
7.4.160.0060.01216.31
7.4.150.0030.01617.40
7.4.140.0020.01617.86
7.4.130.0120.00516.50
7.4.120.0150.00316.43
7.4.110.0090.00916.45
7.4.100.0140.00716.20
7.4.90.0030.01316.36
7.4.80.0090.01219.39
7.4.70.0060.01216.36
7.4.60.0070.01016.56
7.4.50.0050.00316.39
7.4.40.0130.00316.31
7.4.30.0090.00916.57
7.4.00.0120.00314.34
7.3.330.0060.00012.93
7.3.320.0100.00313.16
7.3.310.0000.00716.21
7.3.300.0070.00016.12
7.3.290.0000.00716.04
7.3.280.0070.01316.17
7.3.270.0140.00317.40
7.3.260.0090.00916.07
7.3.250.0070.00916.41
7.3.240.0160.00416.53
7.3.230.0040.01316.39
7.3.210.0160.00016.08
7.3.200.0090.00919.39
7.3.190.0120.00316.24
7.3.180.0130.01016.43
7.3.170.0060.01016.27
7.3.160.0120.00916.11
7.3.10.0120.00316.14
7.3.00.0060.00916.15
7.2.330.0140.01216.45
7.2.320.0120.00316.60
7.2.310.0090.00816.45
7.2.300.0070.01116.61
7.2.290.0130.01116.31
7.2.130.0080.00816.59
7.2.120.0090.00616.50
7.2.110.0090.00816.52
7.2.100.0080.00616.20
7.2.90.0090.00916.66
7.2.80.0100.00716.49
7.2.70.0110.00516.23
7.2.60.0070.00916.56
7.2.50.0140.00616.51
7.2.40.0080.00816.26
7.2.30.0090.00516.55
7.2.20.0140.00616.52
7.2.10.0090.00816.63
7.2.00.0090.00817.49
7.1.250.0070.00815.05
7.1.200.0030.00715.54
7.1.100.0040.01518.18
7.1.70.0040.00416.75
7.1.60.0120.00619.50
7.1.50.0000.01016.82
7.1.00.0070.07322.25
7.0.200.0000.01016.36
7.0.140.0070.03722.00
7.0.60.0000.08719.82
7.0.50.0030.08317.83
7.0.40.0130.08320.12
7.0.30.0330.07320.07
7.0.20.0230.04720.07
7.0.10.0170.04020.16
7.0.00.0130.06320.16
5.6.280.0070.07020.82
5.6.210.0100.09020.55
5.6.200.0100.08318.24
5.6.190.0100.05020.57
5.6.180.0270.08320.59
5.6.170.0300.07720.56
5.6.160.0070.09020.55
5.6.150.0030.04018.15
5.6.140.0130.05018.15
5.6.130.0100.07718.19
5.6.120.0200.07721.11
5.6.110.0100.08320.97
5.6.100.0230.06720.98
5.6.90.0130.09020.97
5.6.80.0030.04020.41
5.6.70.0270.07320.50
5.5.350.0170.06020.39
5.5.340.0070.08317.99
5.5.330.0100.04720.27
5.5.320.0100.08320.44
5.5.310.0230.09020.28
5.5.300.0070.07318.03
5.5.290.0070.08317.95
5.5.280.0170.06720.76
5.5.270.0130.07320.64
5.5.260.0070.04020.75
5.5.250.0070.08720.65
5.5.240.0170.06720.18
5.4.450.0730.06019.57
5.4.440.0170.05719.60
5.4.430.0830.05019.20
5.4.420.0770.06019.54
5.4.410.0900.05719.04
5.4.400.0230.05718.84
5.4.390.0300.05018.77
5.4.380.0400.04318.56
5.4.370.0230.05718.71
5.4.360.0270.05318.80
5.4.350.0330.05018.77
5.4.340.0300.05018.53
5.4.320.0330.05318.58
5.4.310.0200.06018.56
5.4.300.0330.04718.79
5.4.290.0230.05318.69
5.4.280.0230.05718.72
5.4.270.0270.05718.77
5.4.260.0300.06018.61
5.4.250.0270.05318.59
5.4.240.0330.06018.80
5.4.230.0230.05718.73
5.4.220.0300.05318.62
5.4.210.0330.05318.45
5.4.200.0200.06716.62
5.4.190.0270.05318.79
5.4.180.0300.05018.50
5.4.170.0330.05018.73
5.4.160.0270.05318.59
5.4.150.0330.05718.56
5.4.140.0270.05716.47
5.4.130.0270.05316.25
5.4.120.0370.04716.30
5.4.110.0300.04716.25
5.4.100.0330.04716.20
5.4.90.0370.04316.26
5.4.80.0300.04716.26
5.4.70.0270.05016.31
5.4.60.0400.04316.29
5.4.50.0230.05716.40
5.4.40.0270.05316.26
5.4.30.0300.05016.25
5.4.20.0230.05716.30
5.4.10.0330.05016.17
5.4.00.0370.03715.89
5.3.290.0300.05314.75
5.3.280.0300.05014.64
5.3.270.0300.05714.60
5.3.260.0330.05314.73
5.3.250.0330.05014.63
5.3.240.0200.06314.68
5.3.230.0230.05314.57
5.3.220.0170.06314.74
5.3.210.0300.08014.68
5.3.200.0400.05314.65
5.3.190.0230.06714.67
5.3.180.0270.05314.66
5.3.170.0270.05714.55
5.3.160.0400.04714.60
5.3.150.0330.04714.66
5.3.140.0330.04714.64
5.3.130.0270.06014.59
5.3.120.0230.06314.75
5.3.110.0300.05014.73
5.3.100.0330.04714.24
5.3.90.0200.06014.03
5.3.80.0400.05014.11
5.3.70.0370.04314.13
5.3.60.0230.06314.28
5.3.50.0300.05014.05
5.3.40.0270.05014.02
5.3.30.0400.04713.92
5.3.20.0400.04013.81
5.3.10.0270.05013.67
5.3.00.0330.04313.69
5.2.170.0230.04011.05
5.2.160.0270.03711.13
5.2.150.0230.04711.18
5.2.140.0200.04311.28
5.2.130.0170.04711.14
5.2.120.0200.04011.15
5.2.110.0100.04711.07
5.2.100.0170.04311.16
5.2.90.0230.03711.05
5.2.80.0200.04311.13
5.2.70.0230.03711.07
5.2.60.0170.05011.11
5.2.50.0170.04711.04
5.2.40.0130.04310.92
5.2.30.0200.03711.11
5.2.20.0200.03710.89
5.2.10.0200.05010.89
5.2.00.0170.03710.67
5.1.60.0270.03010.06
5.1.50.0200.03010.02
5.1.40.0230.0279.95
5.1.30.0130.03710.31
5.1.20.0170.04010.45
5.1.10.0170.04010.04
5.1.00.0170.03710.10
5.0.50.0200.0238.69
5.0.40.0100.0308.53
5.0.30.0070.0478.24
5.0.20.0130.0238.17
5.0.10.0070.0308.18
5.0.00.0070.0478.29
4.4.90.0130.0205.86
4.4.80.0100.0205.89
4.4.70.0100.0205.89
4.4.60.0130.0175.86
4.4.50.0100.0205.90
4.4.40.0070.0375.89
4.4.30.0070.0235.88
4.4.20.0100.0205.87
4.4.10.0130.0175.97
4.4.00.0130.0305.93
4.3.110.0130.0175.84
4.3.100.0070.0235.81
4.3.90.0070.0275.79
4.3.80.0100.0305.78
4.3.70.0100.0205.80
4.3.60.0100.0205.82
4.3.50.0030.0275.87
4.3.40.0070.0375.88
4.3.30.0070.0204.71
4.3.20.0070.0204.71
4.3.10.0030.0234.71
4.3.00.0130.0237.30

preferences:
49.74 ms | 400 KiB | 5 Q