3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function ($class) { class Foo{ public function __construct() { echo 'Foo'; } }; class_alias('Foo', 'Bar'); class_alias('Foo', 'Bar'); var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)); }, true, true); $bar = new Foo(); $bar2 = new 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.60.0160.00616.48
8.3.50.0100.01021.98
8.3.40.0090.00618.82
8.3.30.0150.00018.67
8.3.20.0070.00020.38
8.3.10.0050.00323.53
8.3.00.0080.00019.54
8.2.180.0150.00318.29
8.2.170.0140.00322.96
8.2.160.0070.00720.58
8.2.150.0050.00225.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0060.00622.21
8.2.100.0080.00418.05
8.2.90.0040.00419.21
8.2.80.0000.01017.97
8.2.70.0030.00517.63
8.2.60.0060.00318.04
8.2.50.0080.00018.07
8.2.40.0000.00821.03
8.2.30.0070.00020.68
8.2.20.0030.00517.75
8.2.10.0040.00418.09
8.2.00.0040.00417.96
8.1.280.0110.00325.92
8.1.270.0070.00024.02
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0030.00622.53
8.1.230.0110.00017.78
8.1.220.0000.00817.74
8.1.210.0050.00518.77
8.1.200.0040.00417.35
8.1.190.0050.00317.25
8.1.180.0040.00418.10
8.1.170.0000.00818.37
8.1.160.0000.00722.02
8.1.150.0040.00418.81
8.1.140.0000.00819.50
8.1.130.0050.00317.71
8.1.120.0050.00217.47
8.1.110.0030.00617.45
8.1.100.0030.00617.44
8.1.90.0030.00517.50
8.1.80.0060.00317.51
8.1.70.0070.00017.51
8.1.60.0040.00417.63
8.1.50.0000.00917.55
8.1.40.0090.00017.41
8.1.30.0030.00617.69
8.1.20.0060.00617.64
8.1.10.0040.00417.56
8.1.00.0030.00517.53
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0030.00518.46
8.0.270.0000.00717.33
8.0.260.0040.00417.35
8.0.250.0080.00017.04
8.0.240.0040.00416.89
8.0.230.0030.00316.91
8.0.220.0000.00716.95
8.0.210.0030.00516.93
8.0.200.0000.00616.96
8.0.190.0000.00716.92
8.0.180.0000.00716.95
8.0.170.0050.00217.02
8.0.160.0000.00716.94
8.0.150.0000.00816.87
8.0.140.0000.00816.93
8.0.130.0060.00013.34
8.0.120.0040.00416.91
8.0.110.0040.00416.90
8.0.100.0050.00216.84
8.0.90.0030.00317.05
8.0.80.0030.01716.96
8.0.70.0040.00417.01
8.0.60.0040.00416.80
8.0.50.0040.00416.93
8.0.30.0090.01317.11
8.0.20.0130.00817.40
8.0.10.0070.00016.95
8.0.00.0120.00716.74
7.4.330.0020.00215.08
7.4.320.0000.00716.53
7.4.300.0000.00616.50
7.4.290.0070.00016.52
7.4.280.0060.00616.42
7.4.270.0000.00716.43
7.4.260.0040.00416.43
7.4.250.0000.00716.49
7.4.240.0030.00416.53
7.4.230.0030.00316.35
7.4.220.0100.00916.59
7.4.210.0060.00916.46
7.4.200.0000.00716.63
7.4.160.0110.00516.55
7.4.150.0160.00317.40
7.4.140.0090.01217.86
7.4.130.0100.01016.55
7.4.120.0130.00416.39
7.4.110.0080.01416.37
7.4.100.0090.01216.66
7.4.90.0060.01216.68
7.4.80.0060.01519.39
7.4.70.0160.00316.65
7.4.60.0090.01316.62
7.4.50.0000.00916.60
7.4.40.0040.01316.51
7.4.30.0150.00716.71
7.4.00.0070.01115.10
7.3.330.0000.00513.32
7.3.320.0030.00313.37
7.3.310.0040.00416.39
7.3.300.0000.00616.23
7.3.290.0070.00916.29
7.3.280.0100.01116.41
7.3.270.0060.01217.40
7.3.260.0070.01116.36
7.3.250.0090.00916.45
7.3.240.0120.01116.42
7.3.230.0090.00916.39
7.3.210.0030.01416.53
7.3.200.0100.00716.43
7.3.190.0030.01416.38
7.3.180.0120.00316.31
7.3.170.0090.00916.29
7.3.160.0130.00616.67
7.2.330.0080.01216.48
7.2.320.0030.01616.76
7.2.310.0100.01016.64
7.2.300.0100.01316.70
7.2.290.0100.00716.82
7.2.60.0040.01216.88
7.2.00.0170.00319.50
7.1.200.0100.00315.49
7.1.100.0000.01318.13
7.1.70.0000.01217.22
7.1.60.0080.01519.50
7.1.50.0000.02016.63
7.1.00.0070.06722.48
7.0.200.0030.00316.71
7.0.60.0130.08019.93
7.0.50.0000.04317.87
7.0.40.0030.04720.02
7.0.30.0400.04320.24
7.0.20.0230.08320.19
7.0.10.0030.04720.22
7.0.00.0030.08720.20
5.6.280.0000.03721.12
5.6.210.0030.04020.67
5.6.200.0100.07018.14
5.6.190.0070.05720.61
5.6.180.0200.04020.64
5.6.170.0270.03720.58
5.6.160.0000.05020.57
5.6.150.0130.07718.20
5.6.140.0030.06718.15
5.6.130.0000.05318.18
5.6.120.0100.08721.02
5.6.110.0070.08321.06
5.6.100.0070.08020.98
5.6.90.0130.07320.99
5.6.80.0100.05320.49
5.5.350.0270.07720.42
5.5.340.0130.07317.95
5.5.330.0100.06720.26
5.5.320.0370.07320.27
5.5.310.1100.05020.34
5.5.300.0070.05018.01
5.5.290.0030.04318.02
5.5.280.0070.06720.78
5.5.270.0070.03720.65
5.5.260.0070.08720.89
5.5.250.0030.05720.69
5.5.240.0030.07020.29
5.4.450.0800.04019.38
5.4.440.0730.05319.39
5.4.430.0770.04319.72
5.4.420.0670.05319.58
5.4.410.0770.04319.48
5.4.400.0600.05719.02
5.4.390.0630.05718.88
5.4.380.0730.05319.33
5.4.370.0670.05019.38
5.4.360.0570.06019.26
5.4.350.0730.04319.28
5.4.340.0670.05018.84
5.4.320.0670.05319.29
5.4.310.0630.05318.83
5.4.300.0600.05718.84
5.4.290.0870.05019.25
5.4.280.0670.05019.22
5.4.270.0700.05718.83
5.4.260.0700.05319.28
5.4.250.0630.05319.05
5.4.240.0700.05019.25
5.4.230.0670.04718.85
5.4.220.0700.05019.25
5.4.210.0670.06319.30
5.4.200.0700.04719.05
5.4.190.0800.06319.13
5.4.180.0600.05719.24
5.4.170.0630.05719.12
5.4.160.0600.06319.35
5.4.150.0700.05719.20
5.4.140.0670.05016.49
5.4.130.0570.05316.28
5.4.120.0830.05016.48
5.4.110.0600.06016.46
5.4.100.0500.04316.62
5.4.90.0200.04016.52
5.4.80.0100.04716.24
5.4.70.0030.03716.44
5.4.60.0300.04716.42
5.4.50.0230.07016.54
5.4.40.0230.03316.23
5.4.30.0000.05016.51
5.4.20.0000.07716.52
5.4.10.0330.06716.16

preferences:
54.78 ms | 401 KiB | 5 Q