3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test(Baz $bar1 = null) { var_dump(func_get_args()); } } class Baz extends Foo { public function test(Baz ...$args) { parent::test(...$args); } } $baz = new Baz(); $baz->test($baz); $foo = new Foo($baz); $foo->test();

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.0090.01216.38
8.3.50.0150.00621.81
8.3.40.0120.00318.36
8.3.30.0070.00718.54
8.3.20.0050.00320.16
8.3.10.0000.00823.52
8.3.00.0040.00419.26
8.2.180.0110.01118.43
8.2.170.0060.01322.96
8.2.160.0070.00720.27
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.63
8.2.110.0030.00620.47
8.2.100.0060.00617.91
8.2.90.0030.00519.11
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0050.00317.68
8.2.50.0000.00818.07
8.2.40.0020.00519.39
8.2.30.0070.00020.67
8.2.20.0040.00417.46
8.2.10.0080.00017.82
8.2.00.0040.00417.85
8.1.280.0100.01025.92
8.1.270.0000.00823.84
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0110.00422.42
8.1.230.0040.00817.63
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.00
8.1.190.0040.00416.88
8.1.180.0070.00018.10
8.1.170.0030.00618.53
8.1.160.0000.00721.99
8.1.150.0080.00018.62
8.1.140.0030.00519.48
8.1.130.0050.00217.48
8.1.120.0000.00717.36
8.1.110.0070.00017.33
8.1.100.0030.00517.36
8.1.90.0070.00017.24
8.1.80.0040.00417.20
8.1.70.0000.00717.32
8.1.60.0040.00417.46
8.1.50.0070.00017.21
8.1.40.0000.00817.41
8.1.30.0070.00317.49
8.1.20.0070.00017.38
8.1.10.0070.00317.36
8.1.00.0030.00517.29
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.29
8.0.270.0040.00217.12
8.0.260.0060.00017.17
8.0.250.0040.00416.74
8.0.240.0100.00016.76
8.0.230.0030.00316.88
8.0.220.0000.00716.88
8.0.210.0050.00316.84
8.0.200.0030.00316.89
8.0.190.0060.00316.92
8.0.180.0000.00716.83
8.0.170.0000.00716.72
8.0.160.0000.00716.95
8.0.150.0000.00716.77
8.0.140.0040.00416.83
8.0.130.0030.00313.28
8.0.120.0040.00416.68
8.0.110.0040.00416.83
8.0.100.0040.00416.84
8.0.90.0040.00416.84
8.0.80.0120.00916.86
8.0.70.0000.00716.80
8.0.60.0040.00416.66
8.0.50.0070.00016.70
8.0.30.0120.00817.00
8.0.20.0130.00717.40
8.0.10.0040.00417.00
8.0.00.0130.00916.80
7.4.330.0000.00615.08
7.4.320.0000.00816.60
7.4.300.0000.00716.63
7.4.290.0040.00416.59
7.4.280.0040.00416.62
7.4.270.0040.00416.40
7.4.260.0000.00816.41
7.4.250.0070.00016.55
7.4.240.0030.00416.46
7.4.230.0000.00716.69
7.4.220.0110.00616.34
7.4.210.0140.00716.62
7.4.200.0040.00416.66
7.4.160.0160.00016.69
7.4.150.0170.00717.40
7.4.140.0100.01317.86
7.4.130.0060.01116.43
7.4.120.0110.00916.63
7.4.110.0080.00816.64
7.4.100.0100.01016.57
7.4.90.0110.00516.69
7.4.80.0110.01219.39
7.4.70.0040.01716.66
7.4.60.0150.00616.36
7.4.50.0030.00616.43
7.4.40.0060.01116.66
7.4.30.0150.00616.42
7.4.00.0120.00414.81
7.3.330.0030.00313.17
7.3.320.0050.00013.23
7.3.310.0000.00716.20
7.3.300.0000.00816.32
7.3.290.0090.00716.31
7.3.280.0110.00816.30
7.3.270.0030.01317.40
7.3.260.0030.01316.29
7.3.250.0110.00816.37
7.3.240.0030.01316.42
7.3.230.0040.01416.39
7.3.210.0080.00816.44
7.3.200.0030.01516.44
7.3.190.0070.01416.29
7.3.180.0030.01716.42
7.3.170.0000.01616.39
7.3.160.0080.00816.32
7.3.120.0040.01414.83
7.3.110.0120.00614.81
7.3.100.0040.01114.85
7.3.90.0150.00314.45
7.3.80.0030.01014.67
7.3.70.0030.00714.61
7.3.60.0060.00614.84
7.3.50.0110.00614.43
7.3.40.0040.00814.69
7.3.30.0030.01014.77
7.3.20.0090.00916.46
7.3.10.0020.01116.47
7.3.00.0030.01216.63
7.2.330.0030.01416.38
7.2.320.0070.01416.82
7.2.310.0060.01616.55
7.2.300.0070.01016.34
7.2.290.0060.00916.32
7.2.250.0130.00315.11
7.2.240.0070.01414.85
7.2.230.0030.01415.11
7.2.220.0060.00614.53
7.2.210.0000.01515.00
7.2.200.0000.00914.83
7.2.190.0030.00614.90
7.2.180.0040.01114.76
7.2.170.0060.00914.90
7.2.130.0000.01516.60
7.2.120.0070.00716.89
7.2.110.0090.00316.80
7.2.100.0120.00316.94
7.2.90.0110.00416.90
7.2.80.0070.00716.73
7.2.70.0060.00916.61
7.2.60.0170.00816.67
7.2.50.0040.00716.60
7.2.40.0070.00716.95
7.2.30.0030.00716.98
7.2.20.0000.01416.55
7.2.10.0070.00716.86
7.2.00.0030.00818.06
7.1.330.0000.01115.60
7.1.320.0090.00315.48
7.1.310.0060.00915.85
7.1.300.0100.00315.76
7.1.290.0030.01015.83
7.1.280.0140.00015.79
7.1.270.0100.00715.82
7.1.260.0080.00415.89
7.1.250.0030.01415.71
7.1.200.0060.00915.72
7.1.100.0000.01118.03
7.1.70.0030.00617.05
7.1.60.0100.01419.43
7.1.50.0120.00916.86
7.1.00.0070.07322.31
7.0.200.0240.00714.44
7.0.60.0170.07319.96
7.0.50.0000.07017.91
7.0.40.0030.08720.15
7.0.30.0300.08020.23
7.0.20.0230.03720.23
7.0.10.0030.05320.12
7.0.00.0100.07720.20
5.6.280.0030.05720.83
5.6.210.0130.08020.63
5.6.200.0070.08318.14
5.6.190.0000.05020.46
5.6.180.0170.04320.41
5.6.170.0300.07720.58
5.6.160.0070.08320.70
5.6.150.0000.04318.23
5.6.140.0070.06018.17
5.6.130.0030.04318.20
5.6.120.0170.08020.98
5.6.110.0130.08021.00
5.6.100.0170.07720.98
5.6.90.0070.04721.02
5.6.80.0130.07720.54
5.5.350.0230.06720.43
5.5.340.0000.06317.97
5.5.330.0070.07320.41
5.5.320.0300.07320.25
5.5.310.0300.07320.41
5.5.300.0030.04018.01
5.5.290.0070.08018.09
5.5.280.0070.08720.88
5.5.270.0070.03720.96
5.5.260.0070.07320.80
5.5.250.0030.04720.61
5.5.240.0070.07020.16
5.4.450.0500.06019.34
5.4.440.0500.06019.48
5.4.430.0130.05019.30
5.4.420.0100.05719.21
5.4.410.0100.05719.04
5.4.400.0400.05319.15
5.4.390.0670.05319.31
5.4.380.0600.05719.38
5.4.370.0600.05719.30
5.4.360.0700.06019.26
5.4.350.0730.05019.30
5.4.340.0600.05719.15
5.4.320.0700.05019.29
5.4.310.0630.05319.02
5.4.300.0670.05719.06
5.4.290.0600.06019.25
5.4.280.0730.08018.98
5.4.270.0700.04319.25
5.4.260.0670.05019.23
5.4.250.0600.05719.00
5.4.240.0700.04718.86
5.4.230.0600.05719.30
5.4.220.0730.05319.23
5.4.210.0630.05019.25
5.4.200.0630.05019.05
5.4.190.0630.06319.27
5.4.180.0830.04719.13
5.4.170.0630.05019.27
5.4.160.0600.05718.85
5.4.150.0670.05319.35
5.4.140.0670.05016.62
5.4.130.0630.04716.38
5.4.120.0630.05316.48
5.4.110.0470.05716.65
5.4.100.0500.05016.57
5.4.90.0500.05016.26
5.4.80.0500.05316.46
5.4.70.0670.06316.63
5.4.60.0670.04716.51
5.4.50.0670.04316.60
5.4.40.0530.05716.59
5.4.30.0670.04316.52
5.4.20.0770.03716.57
5.4.10.0630.06016.59
5.4.00.0600.05315.98

preferences:
49.21 ms | 401 KiB | 5 Q