3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ActionInterface { public function process(); } class Action implements ActionInterface { public function process() { if (static::class !== self::class) { $result = static::process(1, 2, 3); } else { $this->a = 1; } } } class SuperAction extends Action { public function process($a = null, $b = null, $c = null) { $result = parent::process(); var_dump($a, $b, $c); } } $c = new SuperAction(); $c->process();

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.0480.01475.88
8.3.50.0820.03072.41
8.3.40.0310.01044.93
8.3.30.0400.00744.79
8.3.20.0170.00746.41
8.3.10.0160.00646.32
8.3.00.0220.01344.52
8.2.180.0700.02772.38
8.2.170.0290.02944.95
8.2.160.0250.00349.16
8.2.150.0190.00744.77
8.2.140.0210.00745.07
8.2.130.0230.00346.08
8.2.120.0120.00649.18
8.2.110.0190.00946.01
8.2.100.0290.00644.04
8.2.90.0190.00445.22
8.2.80.0130.01043.50
8.2.70.0160.00743.63
8.2.60.0120.00943.93
8.2.50.0140.01043.92
8.2.40.0160.01046.58
8.2.30.0070.01445.29
8.2.20.0170.01043.60
8.2.10.0170.00343.98
8.2.00.0040.01543.89
8.1.280.0520.01074.02
8.1.270.0310.02147.96
8.1.260.0160.00748.60
8.1.250.0190.00446.24
8.1.240.0200.01348.86
8.1.230.0250.00643.83
8.1.220.0110.01143.66
8.1.210.0300.00043.25
8.1.200.0140.00743.25
8.1.190.0070.01443.58
8.1.180.0140.00743.35
8.1.170.0170.01744.39
8.1.160.0100.01046.67
8.1.150.0170.00645.00
8.1.140.0150.00645.45
8.1.130.0140.00743.70
8.1.120.0160.00743.41
8.1.110.0170.00343.48
8.1.100.0040.01643.48
8.1.90.0110.01143.50
8.1.80.0200.00343.55
8.1.70.0130.01043.49
8.1.60.0320.00843.62
8.1.50.0130.01043.55
8.1.40.0220.01343.52
8.1.30.0200.00743.66
8.1.20.0140.01443.49
8.1.10.0320.01073.11
8.1.00.0330.01373.17
8.0.300.0240.00972.60
8.0.290.0160.01972.38
8.0.280.0190.01374.08
8.0.270.0340.01772.72
8.0.260.0350.00772.85
8.0.250.0290.01372.55
8.0.240.0320.01172.52
8.0.230.0170.02072.42
8.0.220.0320.01072.39
8.0.210.0230.01372.28
8.0.200.0290.01372.55
8.0.190.0320.01372.41
8.0.180.0240.01472.41
8.0.170.0290.01072.52
8.0.160.0200.01772.37
8.0.150.0350.01072.48
8.0.140.0260.02072.38
8.0.130.0610.014121.76
8.0.120.0220.01572.46
8.0.110.0230.01672.39
8.0.100.0230.01772.42
8.0.90.0170.01772.35
8.0.80.0420.03272.46
8.0.70.0270.01272.42
8.0.60.0190.01672.27
8.0.50.0220.01672.40
8.0.30.0560.01972.68
8.0.20.0530.03772.54
8.0.10.0240.01772.40
8.0.00.0610.03572.42
7.4.330.0140.01075.57
7.4.320.0190.01672.14
7.4.300.0400.00772.08
7.4.290.0300.01772.02
7.4.280.0330.01372.03
7.4.270.0360.02071.94
7.4.260.0410.01371.99
7.4.250.0290.01072.07
7.4.240.0250.01171.95
7.4.230.0170.02072.15
7.4.220.0920.05372.07
7.4.210.0460.02872.11
7.4.200.0230.01672.04
7.4.160.0570.02372.07
7.4.150.0440.04772.23
7.4.140.0590.03572.11
7.4.130.0520.03772.05
7.4.120.0600.02672.19
7.4.110.0420.04972.07
7.4.100.0580.03771.95
7.4.90.0550.03572.04
7.4.80.0560.04672.21
7.4.70.0640.02772.05
7.4.60.0570.04072.12
7.4.50.0360.02071.80
7.4.40.0630.02372.21
7.4.30.0600.02871.89
7.4.00.0340.01470.29
7.3.330.0860.018121.74
7.3.320.0510.024121.73
7.3.310.0240.01471.77
7.3.300.0200.01771.81
7.3.290.0250.01171.86
7.3.280.0550.03471.80
7.3.270.0660.02871.86
7.3.260.0670.05472.05
7.3.250.0750.03971.77
7.3.240.0670.03872.06
7.3.230.0630.02371.82
7.3.210.0600.04771.87
7.3.200.0830.03071.88
7.3.190.0620.02471.95
7.3.180.0560.03271.86
7.3.170.0780.03471.91
7.3.160.0600.03471.79
7.2.330.0500.04072.17
7.2.320.0620.06571.91
7.2.310.0620.03272.05
7.2.300.0810.04872.27
7.2.290.0460.04371.96
7.2.60.1870.02078.90
7.2.02.4770.02773.05
7.1.200.1380.02077.64
7.1.100.4700.02348.26
7.1.70.0720.01378.94
7.1.60.0190.03578.87
7.1.50.0460.03078.84
7.1.00.0030.10084.27
7.0.200.6230.02370.18
7.0.60.1230.07075.79
7.0.50.0330.05773.54
7.0.40.0230.04320.05
7.0.30.0370.05020.24
7.0.20.0400.07020.30
7.0.10.0170.04720.15
7.0.00.0270.08320.07
5.6.280.0230.09385.49
5.6.210.0230.06085.19
5.6.200.0300.10082.95
5.6.190.0200.06785.10
5.6.180.0670.09385.08
5.6.170.0530.10085.16
5.6.160.0230.07785.07
5.6.150.0200.13082.87
5.6.140.0400.10082.84
5.6.130.0270.06382.94
5.6.120.0400.08785.66
5.6.110.0400.11085.60
5.6.100.0170.06785.66
5.6.90.0300.12085.83
5.6.80.0270.11085.23
5.5.350.0670.09385.08
5.5.340.0500.09082.70
5.5.330.0430.11084.82
5.5.320.0270.07084.93
5.5.310.0470.06084.83
5.5.300.0200.13082.63
5.5.290.0300.11082.66
5.5.280.0270.06785.54
5.5.270.0230.11385.58
5.5.260.0270.12385.51
5.5.250.0200.06085.18
5.5.240.0330.10385.04

preferences:
56.6 ms | 401 KiB | 5 Q