3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace derp { class Foo {} } namespace herp { class BetterFoo extends \derp\Foo {} class Derp { public function __construct(DerpFoo $foo) {} } class_alias('\derp\Foo', 'DerpFoo'); $f = new Derp(new BetterFoo); }

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.0140.00416.63
8.3.50.0150.00521.93
8.3.40.0100.01018.91
8.3.30.0070.00719.16
8.3.20.0070.00020.33
8.3.10.0070.00723.66
8.3.00.0050.00322.45
8.2.180.0040.01116.38
8.2.170.0060.00922.96
8.2.160.0090.00920.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0180.00026.16
8.2.120.0000.00722.08
8.2.110.0040.00422.20
8.2.100.0000.01217.78
8.2.90.0070.00019.05
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0090.00017.79
8.2.50.0000.00818.07
8.2.40.0000.00818.16
8.2.30.0070.00317.99
8.2.20.0070.00017.53
8.2.10.0050.00319.46
8.2.00.0040.00417.73
8.1.280.0070.01125.92
8.1.270.0090.00023.84
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0030.00719.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0040.00417.30
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0080.00022.00
8.1.150.0000.00718.51
8.1.140.0000.00817.27
8.1.130.0040.00417.72
8.1.120.0070.00017.38
8.1.110.0040.00417.37
8.1.100.0040.00417.18
8.1.90.0030.00517.23
8.1.80.0000.00717.30
8.1.70.0030.00317.28
8.1.60.0000.00717.43
8.1.50.0080.00017.39
8.1.40.0000.00717.35
8.1.30.0000.00817.56
8.1.20.0080.00017.60
8.1.10.0000.00817.41
8.1.00.0040.00417.48
8.0.300.0030.00318.77
8.0.290.0000.00717.05
8.0.280.0030.00318.32
8.0.270.0030.00417.11
8.0.260.0030.00316.87
8.0.250.0000.00717.00
8.0.240.0000.00717.00
8.0.230.0070.00016.94
8.0.220.0070.00016.81
8.0.210.0070.00016.79
8.0.200.0000.00716.98
8.0.190.0060.00316.95
8.0.180.0040.00416.94
8.0.170.0040.00416.83
8.0.160.0000.00716.89
8.0.150.0000.00816.88
8.0.140.0000.00716.86
8.0.130.0000.00613.39
8.0.120.0080.00016.83
8.0.110.0000.00916.83
8.0.100.0080.00016.76
8.0.90.0000.00716.92
8.0.80.0090.00716.89
8.0.70.0070.00016.86
8.0.60.0000.00716.95
8.0.50.0040.00416.92
8.0.30.0150.00517.19
8.0.20.0110.01117.40
8.0.10.0040.00417.00
8.0.00.0130.00816.67
7.4.330.0050.00015.00
7.4.320.0030.00316.38
7.4.300.0030.00316.42
7.4.290.0030.00316.55
7.4.280.0030.00316.38
7.4.270.0000.00716.49
7.4.260.0070.00016.33
7.4.250.0030.00516.44
7.4.240.0030.00516.42
7.4.230.0000.00716.64
7.4.220.0030.01516.41
7.4.210.0110.00516.52
7.4.200.0000.00716.53
7.4.190.0000.00716.47
7.4.160.0040.01116.49
7.4.150.0130.00417.40
7.4.140.0090.01117.86
7.4.130.0150.00216.52
7.4.120.0060.01116.49
7.4.110.0100.00716.39
7.4.100.0090.01216.47
7.4.90.0120.00816.39
7.4.80.0110.00519.39
7.4.70.0120.00416.55
7.4.60.0100.00716.54
7.4.50.0000.00516.21
7.4.40.0040.00722.77
7.4.30.0060.01016.69
7.4.00.0070.00714.60
7.3.330.0060.00013.32
7.3.320.0050.00013.23
7.3.310.0030.00316.23
7.3.300.0030.00316.38
7.3.290.0060.01216.36
7.3.280.0090.01316.30
7.3.270.0100.00717.40
7.3.260.0130.00416.35
7.3.250.0130.00416.44
7.3.240.0100.00616.49
7.3.230.0060.01016.59
7.3.210.0080.00816.55
7.3.200.0110.00719.39
7.3.190.0070.01116.40
7.3.180.0080.00816.59
7.3.170.0060.01016.42
7.3.160.0060.01016.34
7.3.120.0040.01114.84
7.2.330.0140.00316.66
7.2.320.0070.01016.68
7.2.310.0100.00716.38
7.2.300.0110.00716.59
7.2.290.0060.00916.70
7.2.60.0060.00616.68
7.2.00.0040.01119.07
7.1.200.0070.00715.60
7.1.100.0070.00718.14
7.1.70.0070.00017.05
7.1.60.0100.00719.29
7.1.50.0060.01616.92
7.1.00.0030.07722.46
7.0.200.0050.00516.32
7.0.140.0000.07322.02
7.0.60.0070.08019.89
7.0.50.0130.07717.72
7.0.40.0070.08020.18
7.0.30.0270.08320.33
7.0.20.0270.06020.16
7.0.10.0330.04020.24
7.0.00.0030.04720.06
5.6.280.0070.07021.09
5.6.210.0130.07320.73
5.6.200.0070.03718.18
5.6.190.0030.04320.39
5.6.180.0030.08720.55
5.6.170.0330.07020.43
5.6.160.0170.07320.57
5.6.150.0100.07718.29
5.6.140.0170.07318.18
5.6.130.0100.05018.14
5.6.120.0030.05721.13
5.6.110.0030.04020.98
5.6.100.0070.08020.98
5.6.90.0100.04721.10
5.6.80.0030.08720.38
5.6.70.0300.07320.37
5.5.350.0030.07020.39
5.5.340.0070.06718.05
5.5.330.0070.04720.26
5.5.320.0030.05720.33
5.5.310.0200.05020.35
5.5.300.0070.08017.96
5.5.290.0030.05717.92
5.5.280.0130.07020.88
5.5.270.0030.08020.86
5.5.260.0070.03720.77
5.5.250.0070.07020.71
5.5.240.0130.03320.12
5.4.450.0270.05319.18
5.4.440.0300.06019.52
5.4.430.0200.04319.32
5.4.420.0270.07319.41
5.4.410.0300.03719.51
5.4.400.0300.06719.20
5.4.390.0200.04719.24
5.4.380.0330.07019.20
5.4.370.0270.06019.32
5.4.360.0370.06319.15
5.4.350.0270.04719.13
5.4.340.0400.06319.25
5.4.320.0200.08019.24
5.4.310.0330.06719.09
5.4.300.0230.07319.14
5.4.290.0270.07719.13
5.4.280.0230.08019.22
5.4.270.0130.04319.22
5.4.260.0070.04319.24
5.4.250.0170.03719.30
5.4.240.0130.04018.84
5.4.230.0170.03718.93
5.4.220.0130.05018.84
5.4.210.0200.03319.14
5.4.200.0130.04719.13
5.4.190.0170.03719.14
5.4.180.0130.04319.15
5.4.170.0170.03719.05
5.4.160.0170.03319.11
5.4.150.0170.04019.11
5.4.140.0130.03716.52
5.4.130.0100.04016.37
5.4.120.0200.03016.33
5.4.110.0130.03716.61
5.4.100.0170.03016.52
5.4.90.0130.04016.62
5.4.80.0230.03016.57
5.4.70.0200.03016.63
5.4.60.0170.03316.17
5.4.50.0170.03716.43
5.4.40.0170.03016.38
5.4.30.0100.03716.52
5.4.20.0230.05016.53
5.4.10.0370.04716.52
5.4.00.0230.04315.96
5.3.290.0230.07714.75
5.3.280.0130.04014.60
5.3.270.0170.03714.52
5.3.260.0170.04014.53
5.3.250.0200.03314.58
5.3.240.0130.04014.52
5.3.230.0170.03314.82
5.3.220.0200.03014.79
5.3.210.0230.03714.68
5.3.200.0130.03714.54
5.3.190.0170.03714.65
5.3.180.0230.04014.55
5.3.170.0270.02714.63
5.3.160.0170.03714.56
5.3.150.0200.03014.48
5.3.140.0070.04314.48
5.3.130.0200.03714.59
5.3.120.0170.04314.54
5.3.110.0330.05314.45
5.3.100.0200.07314.04
5.3.90.0200.06014.02
5.3.80.0400.05313.94
5.3.70.0230.07314.07
5.3.60.0200.05313.91
5.3.50.0270.04014.13
5.3.40.0330.06314.03
5.3.30.0230.04013.81
5.3.20.0300.06713.61
5.3.10.0370.05713.59
5.3.00.0270.05313.75
5.2.170.0200.03011.71
5.2.160.0170.05011.71
5.2.150.0300.05711.71
5.2.140.0200.05311.71
5.2.130.0230.05711.71
5.2.120.0270.05011.71
5.2.110.0300.04311.71
5.2.100.0230.04311.71
5.2.90.0270.05711.71
5.2.80.0270.05011.71
5.2.70.0200.06311.71
5.2.60.0300.05011.71
5.2.50.0270.03011.71
5.2.40.0130.04711.71
5.2.30.0100.04711.71
5.2.20.0170.04011.71
5.2.10.0100.05711.71
5.2.00.0170.05711.71
5.1.60.0170.05011.71
5.1.50.0230.05311.71
5.1.40.0270.04311.71
5.1.30.0200.04311.71
5.1.20.0230.05311.71
5.1.10.0200.04011.71
5.1.00.0230.04311.71
5.0.50.0130.04311.71
5.0.40.0170.04011.71
5.0.30.0030.08011.71
5.0.20.0100.03711.71
5.0.10.0070.03011.71
5.0.00.0100.05011.71
4.4.90.0070.03711.71
4.4.80.0070.02311.71
4.4.70.0170.01711.71
4.4.60.0200.02711.71
4.4.50.0030.03311.71
4.4.40.0100.03311.71
4.4.30.0100.03311.71
4.4.20.0030.03711.71
4.4.10.0130.03311.71
4.4.00.0100.04011.71
4.3.110.0070.02011.71
4.3.100.0100.03711.71
4.3.90.0130.02011.71
4.3.80.0100.04711.71
4.3.70.0070.02711.71
4.3.60.0170.01311.71
4.3.50.0070.02311.71
4.3.40.0030.04711.71
4.3.30.0030.02311.71
4.3.20.0070.02311.71
4.3.10.0070.01711.71
4.3.00.0030.02311.71

preferences:
51.04 ms | 400 KiB | 5 Q