3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface i1 { } class a { function find() { return null; } function _do(i1 $x) { var_dump("do".$x); } function main() { if ($this->n = $a->find() && _do($this->n)) { echo "yes"; } } } $a = new a(); $a->main();

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.0110.00716.50
8.3.50.0080.01221.10
8.3.40.0150.00018.72
8.3.30.0070.00718.67
8.3.20.0000.00820.18
8.3.10.0040.00423.71
8.3.00.0080.00022.52
8.2.180.0090.00618.55
8.2.170.0170.00322.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0030.00626.16
8.2.120.0060.00317.75
8.2.110.0060.00320.97
8.2.100.0000.01217.84
8.2.90.0000.00919.11
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0030.00621.00
8.2.30.0030.00519.80
8.2.20.0040.00417.57
8.2.10.0040.00418.00
8.2.00.0030.00518.05
8.1.280.0100.00325.92
8.1.270.0000.00920.05
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00322.02
8.1.230.0110.00020.82
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0050.00517.12
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0000.00818.43
8.1.160.0040.00422.00
8.1.150.0070.00018.75
8.1.140.0050.00317.32
8.1.130.0000.00717.65
8.1.120.0060.00317.44
8.1.110.0020.00517.30
8.1.100.0070.00017.29
8.1.90.0050.00217.41
8.1.80.0080.00017.38
8.1.70.0040.00417.33
8.1.60.0040.00417.59
8.1.50.0040.00417.49
8.1.40.0000.00817.51
8.1.30.0030.00517.55
8.1.20.0040.00417.48
8.1.10.0030.00517.63
8.1.00.0030.00517.38
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0030.00318.46
8.0.270.0030.00317.05
8.0.260.0080.00017.07
8.0.250.0070.00017.03
8.0.240.0070.00016.83
8.0.230.0030.00716.88
8.0.220.0040.00416.89
8.0.210.0040.00416.81
8.0.200.0000.00816.97
8.0.190.0030.00616.88
8.0.180.0020.00516.92
8.0.170.0000.00816.90
8.0.160.0030.00316.99
8.0.150.0050.00316.93
8.0.140.0030.00316.89
8.0.130.0050.00013.31
8.0.120.0040.00416.82
8.0.110.0050.00316.88
8.0.100.0040.00416.77
8.0.90.0000.00716.77
8.0.80.0090.00916.81
8.0.70.0040.00416.85
8.0.60.0050.00316.88
8.0.50.0050.00216.94
8.0.30.0100.00817.22
8.0.20.0120.00617.40
8.0.10.0030.00516.91
8.0.00.0100.00816.77
7.4.330.0030.00315.08
7.4.320.0030.00316.38
7.4.300.0030.00316.57
7.4.290.0000.00716.60
7.4.280.0050.00316.61
7.4.270.0070.00016.52
7.4.260.0000.00716.60
7.4.250.0050.00316.46
7.4.240.0000.00716.53
7.4.230.0000.00716.51
7.4.220.0150.00316.47
7.4.210.0040.01116.52
7.4.200.0030.00516.65
7.4.160.0110.00416.57
7.4.150.0090.00917.40
7.4.140.0130.00817.86
7.4.130.0100.00716.64
7.4.120.0130.00716.45
7.4.110.0130.00316.66
7.4.100.0090.01716.55
7.4.90.0060.01216.56
7.4.80.0070.01419.39
7.4.70.0070.01016.50
7.4.60.0130.00316.49
7.4.50.0030.00516.43
7.4.40.0060.00916.60
7.4.30.0090.01316.55
7.4.00.0030.01014.90
7.3.330.0060.00013.40
7.3.320.0000.00613.16
7.3.310.0000.00716.40
7.3.300.0030.00316.38
7.3.290.0080.00716.34
7.3.280.0040.01416.36
7.3.270.0100.00717.40
7.3.260.0120.00416.28
7.3.250.0110.00716.48
7.3.240.0160.00616.56
7.3.230.0100.00716.39
7.3.210.0030.01416.33
7.3.200.0030.01519.39
7.3.190.0070.01016.34
7.3.180.0060.00916.55
7.3.170.0130.00616.39
7.3.160.0140.00716.32
7.2.330.0070.01116.49
7.2.320.0140.00416.62
7.2.310.0030.01816.80
7.2.300.0120.01216.62
7.2.290.0090.00916.62
7.2.60.0000.01516.80
7.2.00.0080.00419.39
7.1.200.0080.00315.71
7.1.100.0060.01017.55
7.1.70.0040.00417.18
7.1.60.0060.01520.03
7.1.50.0030.01716.77
7.1.00.0000.08022.54
7.0.200.0360.00014.55
7.0.60.0100.08019.92
7.0.50.0100.07717.87
7.0.40.0070.06020.10
7.0.30.0330.07320.34
7.0.20.0230.04720.12
7.0.10.0030.09020.26
7.0.00.0130.08320.16
5.6.280.0000.07020.97
5.6.210.0030.07020.55
5.6.200.0030.08318.25
5.6.190.0000.04720.33
5.6.180.3530.04020.63
5.6.170.0230.04020.45
5.6.160.0130.06320.61
5.6.150.0000.05318.29
5.6.140.0000.04318.23
5.6.130.0000.04718.15
5.6.120.0070.08721.15
5.6.110.0100.08720.96
5.6.100.0030.08020.89
5.6.90.0130.06321.11
5.6.80.0030.05320.51
5.6.70.4300.04720.41
5.5.350.0200.07320.42
5.5.340.0130.07317.98
5.5.330.0030.08020.43
5.5.320.0370.07720.32
5.5.310.0300.04320.24
5.5.300.0100.06317.99
5.5.290.0100.07318.02
5.5.280.0130.07720.77
5.5.270.0230.05720.84
5.5.260.0030.04720.73
5.5.250.0130.07320.62
5.5.240.0170.08020.17
5.4.450.0100.06719.33
5.4.440.0230.05019.47
5.4.430.0170.05319.56
5.4.420.0170.05019.59
5.4.410.0170.05319.44
5.4.400.0200.04718.84
5.4.390.0170.05318.83
5.4.380.0200.04719.08
5.4.370.0270.04019.15
5.4.360.0200.05019.24
5.4.350.0130.05319.27
5.4.340.0200.04718.95
5.4.320.0170.05319.25
5.4.310.0200.05019.05
5.4.300.0170.05019.00
5.4.290.0130.05319.25
5.4.280.0170.05019.26
5.4.270.0300.04319.25
5.4.260.0200.04719.26
5.4.250.0200.04719.07
5.4.240.0100.06019.22
5.4.230.0270.06319.26
5.4.220.0130.05718.92
5.4.210.0070.06019.16
5.4.200.0230.04316.68
5.4.190.0200.04719.24
5.4.180.0070.06018.95
5.4.170.0200.05019.02
5.4.160.0070.06718.95
5.4.150.0200.05019.11
5.4.140.0130.05716.60
5.4.130.0170.04716.39
5.4.120.0200.04316.49
5.4.110.0200.05716.43
5.4.100.0270.04316.45
5.4.90.0230.04316.34
5.4.80.0170.04716.32
5.4.70.0230.04016.36
5.4.60.0170.05016.54
5.4.50.0000.07716.23
5.4.40.0230.06316.38
5.4.30.0270.04316.51
5.4.20.0270.03016.52

preferences:
49.34 ms | 401 KiB | 5 Q