3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class Bar {} } namespace { $a = new \Foo\Bar; class_alias("\Foo\Legacy\Bar", "\Foo\Bar"); $b = new \Foo\Legacy\Bar; var_dump(serialize($b)); }

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.0180.00418.31
8.3.50.0080.00921.91
8.3.40.0070.00718.88
8.3.30.0140.00019.17
8.3.20.0040.00420.16
8.3.10.0080.00021.73
8.3.00.0090.00019.13
8.2.180.0090.00918.67
8.2.170.0120.00622.96
8.2.160.0130.00320.39
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0090.00019.49
8.2.110.0090.00020.47
8.2.100.0040.00817.91
8.2.90.0030.00518.04
8.2.80.0080.00017.97
8.2.70.0000.00817.38
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0000.00918.09
8.2.30.0050.00317.94
8.2.20.0040.00417.74
8.2.10.0020.00518.05
8.2.00.0040.00417.60
8.1.280.0140.00725.92
8.1.270.0080.00018.83
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00422.09
8.1.230.0030.00821.04
8.1.220.0000.00817.74
8.1.210.0040.00418.91
8.1.200.0000.00917.25
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0040.00420.37
8.1.160.0000.00721.86
8.1.150.0050.00218.87
8.1.140.0000.00717.32
8.1.130.0000.00717.81
8.1.120.0060.00317.42
8.1.110.0050.00317.43
8.1.100.0000.00717.39
8.1.90.0040.00417.30
8.1.80.0080.00017.43
8.1.70.0060.00317.28
8.1.60.0030.00517.55
8.1.50.0040.00417.43
8.1.40.0000.00817.56
8.1.30.0050.00317.71
8.1.20.0030.00517.53
8.1.10.0030.00617.60
8.1.00.0040.00417.54
8.0.300.0040.00420.21
8.0.290.0000.00716.75
8.0.280.0030.00318.44
8.0.270.0000.00717.19
8.0.260.0000.00617.06
8.0.250.0050.00216.86
8.0.240.0060.00016.87
8.0.230.0000.00716.96
8.0.220.0030.00316.89
8.0.210.0000.00716.82
8.0.200.0060.00316.96
8.0.190.0050.00216.84
8.0.180.0030.00516.83
8.0.170.0030.00516.87
8.0.160.0000.00716.81
8.0.150.0000.00716.71
8.0.140.0000.00716.77
8.0.130.0070.00013.27
8.0.120.0000.00816.70
8.0.110.0000.00716.82
8.0.100.0040.00416.90
8.0.90.0000.00716.93
8.0.80.0060.01516.91
8.0.70.0050.00316.79
8.0.60.0000.00816.89
8.0.50.0000.00716.87
8.0.30.0100.01316.83
8.0.20.0220.01517.40
8.0.10.0070.00016.88
8.0.00.0090.00816.97
7.4.330.0000.00515.03
7.4.320.0030.00316.39
7.4.300.0000.00816.59
7.4.290.0070.00016.52
7.4.280.0070.00016.52
7.4.270.0000.00616.45
7.4.260.0050.00216.48
7.4.250.0030.00616.57
7.4.240.0070.00216.58
7.4.230.0070.00016.58
7.4.220.0090.00916.64
7.4.210.0130.00116.62
7.4.200.0050.00316.65
7.4.160.0050.01516.66
7.4.150.0150.00317.40
7.4.140.0100.00817.86
7.4.130.0110.00816.58
7.4.120.0070.00916.50
7.4.110.0070.01016.58
7.4.100.0030.01416.48
7.4.90.0100.00716.60
7.4.80.0060.01019.39
7.4.70.0100.01316.70
7.4.60.0000.01816.59
7.4.50.0040.00416.47
7.4.40.0090.01216.53
7.4.30.0140.00416.50
7.4.00.0030.01314.92
7.3.330.0000.00513.29
7.3.320.0000.01313.27
7.3.310.0070.00016.31
7.3.300.0000.00716.31
7.3.290.0000.00716.27
7.3.280.0100.01016.29
7.3.270.0070.01717.40
7.3.260.0070.01016.55
7.3.250.0090.01016.36
7.3.240.0060.01016.23
7.3.230.0120.00616.51
7.3.210.0100.01116.39
7.3.200.0130.00619.39
7.3.190.0120.00316.43
7.3.180.0140.00216.38
7.3.170.0130.00716.56
7.3.160.0060.00916.41
7.2.330.0100.01316.44
7.2.320.0030.01416.53
7.2.310.0070.01016.67
7.2.300.0110.00716.46
7.2.290.0120.01416.37
7.2.60.0030.01016.97
7.2.00.0060.00619.35
7.1.200.0030.00815.46
7.1.100.0070.00717.79
7.1.70.0040.00417.13
7.1.60.0100.01319.50
7.1.50.0100.01016.82
7.1.00.0030.07722.28
7.0.200.0080.00016.82
7.0.140.0000.08021.98
7.0.60.0100.08319.91
7.0.50.0070.08317.86
7.0.40.0030.08020.12
7.0.30.0230.07020.23
7.0.20.0130.05020.07
7.0.10.0170.04720.13
7.0.00.0070.09020.08
5.6.280.0000.07721.07
5.6.210.0030.09020.54
5.6.200.0100.04018.29
5.6.190.0100.07720.61
5.6.180.0300.07720.75
5.6.170.0470.04320.45
5.6.160.0130.04020.54
5.6.150.0030.04718.28
5.6.140.0030.08018.21
5.6.130.0070.03718.21
5.6.120.0030.04021.12
5.6.110.0030.08721.01
5.6.100.0070.06721.11
5.6.90.0130.07320.98
5.6.80.0030.04020.39
5.6.70.0370.06020.27
5.5.350.0130.05320.46
5.5.340.0100.07718.07
5.5.330.0070.04020.47
5.5.320.0170.08020.28
5.5.310.0300.06320.35
5.5.300.0100.04018.00
5.5.290.0000.08717.91
5.5.280.0100.08020.77
5.5.270.0070.04720.96
5.5.260.0170.07720.86
5.5.250.0100.07720.68
5.5.240.0100.04320.26
5.4.450.0030.08019.16
5.4.440.0100.06019.55
5.4.430.1600.03319.51
5.4.420.2800.04319.54
5.4.410.0400.03719.07
5.4.400.0500.04019.15
5.4.390.0270.04018.95
5.4.380.0270.05318.87
5.4.370.0230.07019.16
5.4.360.0170.03319.22
5.4.350.0100.04319.00
5.4.340.0130.05718.99
5.4.320.0130.08319.21
5.4.310.0070.07018.88
5.4.300.0100.07019.06
5.4.290.0000.05319.09
5.4.280.0030.03719.06
5.4.270.0000.04019.31
5.4.260.0070.04019.21
5.4.250.1530.04019.23
5.4.240.2670.04019.21
5.4.230.0070.04319.05
5.4.220.0130.06018.89
5.4.210.1030.03718.87
5.4.200.2430.03318.98
5.4.190.2730.04019.07
5.4.180.2770.03719.15
5.4.170.2330.03719.20
5.4.160.2570.04019.11
5.4.150.2530.03719.29
5.4.140.2530.03716.34
5.4.130.2230.03016.31
5.4.120.0830.04016.45
5.4.110.0030.03716.45
5.4.100.0000.04316.47
5.4.90.2400.04716.45
5.4.80.2370.04716.35
5.4.70.2670.03316.54
5.4.60.2600.03316.54
5.4.50.2370.03716.48
5.4.40.2400.03316.38
5.4.30.2330.03316.42
5.4.20.2470.03716.42
5.4.10.2370.03016.39
5.4.00.2370.03715.73
5.3.290.2570.04014.89
5.3.280.2470.03314.51
5.3.270.2700.04014.52
5.3.260.2370.03314.82
5.3.250.2370.03314.50
5.3.240.2400.03314.60
5.3.230.2500.03714.50
5.3.220.2030.04014.70
5.3.210.0070.04714.56
5.3.200.0000.03714.46
5.3.190.0930.05014.47
5.3.180.0000.03714.63
5.3.170.0000.04314.55
5.3.160.0030.04314.63
5.3.150.1200.03714.70
5.3.140.2600.03314.70
5.3.130.2700.04714.52
5.3.120.2700.03314.68
5.3.110.2470.03714.65
5.3.100.2500.03714.04
5.3.90.2470.03014.09
5.3.80.2470.03313.93
5.3.70.0000.04013.94
5.3.60.0100.06314.03
5.3.50.1170.04013.87
5.3.40.0000.07013.86
5.3.30.0100.06713.82
5.3.20.0030.04013.80
5.3.10.0000.06013.57
5.3.00.0030.07013.54
5.2.170.1600.02012.02
5.2.160.1930.03312.02
5.2.150.0070.04012.02
5.2.140.0130.02312.02
5.2.130.0070.02712.02
5.2.120.1230.02712.02
5.2.110.0030.03012.02
5.2.100.0070.04012.02
5.2.90.0070.03012.02
5.2.80.1030.02712.02
5.2.70.0000.04012.02
5.2.60.0000.03712.02
5.2.50.0000.06312.02
5.2.40.0900.03312.02
5.2.30.0100.03712.02
5.2.20.0030.06012.02
5.2.10.0670.04312.02
5.2.00.0470.05012.02
5.1.60.0130.05012.02
5.1.50.0170.04712.02
5.1.40.0170.02712.02
5.1.30.0170.04312.02
5.1.20.0100.05012.02
5.1.10.0130.03712.02
5.1.00.0100.02712.02
5.0.50.0070.02712.02
5.0.40.0030.03012.02
5.0.30.0130.05712.02
5.0.20.0030.03012.02
5.0.10.0030.02312.02
5.0.00.0030.03312.02
4.4.90.0070.03312.02
4.4.80.0070.01312.02
4.4.70.0100.01312.02
4.4.60.0030.03012.02
4.4.50.0030.02012.02
4.4.40.0070.02312.02
4.4.30.0000.03012.02
4.4.20.0030.02712.02
4.4.10.0000.02012.02
4.4.00.0000.03312.02
4.3.110.0000.01712.02
4.3.100.0000.01712.02
4.3.90.0100.01712.02
4.3.80.0000.02312.02
4.3.70.0000.02012.02
4.3.60.0000.01712.02
4.3.50.0000.01712.02
4.3.40.0000.02712.02
4.3.30.0000.01712.02
4.3.20.0000.01712.02
4.3.10.0000.02012.02
4.3.00.0000.01312.02

preferences:
44.68 ms | 401 KiB | 5 Q