3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function foo() { var_dump('Calling in base class'); } } class Baz extends Foo { public function foo() { var_dump('Calling in sub class'); } } $x = new Baz(); $x->foo();

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.40.0120.00318.54
8.3.30.0100.00318.88
8.3.20.0070.00020.22
8.3.10.0040.00421.98
8.3.00.0080.00022.52
8.2.170.0070.00722.96
8.2.160.0060.01220.91
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00417.50
8.2.110.0030.00722.21
8.2.100.0070.00419.51
8.2.90.0030.00519.23
8.2.80.0090.00017.97
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0080.00018.03
8.2.30.0000.00718.04
8.2.20.0000.00717.59
8.2.10.0080.00017.71
8.2.00.0000.00917.68
8.1.270.0040.00422.11
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00623.96
8.1.230.0080.00419.08
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0080.00017.40
8.1.180.0080.00018.10
8.1.170.0040.00418.54
8.1.160.0050.00521.89
8.1.150.0000.00718.48
8.1.140.0000.00717.28
8.1.130.0040.00417.87
8.1.120.0030.00517.30
8.1.110.0050.00317.27
8.1.100.0000.00717.27
8.1.90.0000.00717.27
8.1.80.0030.00317.36
8.1.70.0000.00717.25
8.1.60.0090.00017.58
8.1.50.0070.00017.47
8.1.40.0040.00417.46
8.1.30.0040.00417.56
8.1.20.0090.00017.61
8.1.10.0000.00817.54
8.1.00.0050.00317.42
8.0.300.0000.00718.77
8.0.290.0030.00317.15
8.0.280.0050.00318.29
8.0.270.0000.00717.17
8.0.260.0000.00616.68
8.0.250.0000.00716.74
8.0.240.0030.00316.82
8.0.230.0050.00216.81
8.0.220.0030.00316.72
8.0.210.0030.00316.70
8.0.200.0000.00616.92
8.0.190.0000.00716.82
8.0.180.0000.00716.84
8.0.170.0040.00416.93
8.0.160.0070.00016.68
8.0.150.0080.00016.72
8.0.140.0000.00716.79
8.0.130.0000.00513.27
8.0.120.0040.00416.83
8.0.110.0080.00016.63
8.0.100.0050.00216.74
8.0.90.0000.00716.69
8.0.80.0060.00916.82
8.0.70.0000.00716.85
8.0.60.0000.00716.80
8.0.50.0000.00716.72
8.0.30.0090.00916.82
8.0.20.0150.00617.40
8.0.10.0040.00417.05
8.0.00.0060.01316.56
7.4.330.0050.00015.00
7.4.320.0030.00316.41
7.4.300.0030.00516.48
7.4.290.0030.00316.50
7.4.280.0040.00716.49
7.4.270.0000.00716.54
7.4.260.0030.00316.62
7.4.250.0040.00416.54
7.4.240.0040.00316.58
7.4.230.0030.00316.47
7.4.220.0030.01216.60
7.4.210.0080.00716.67
7.4.200.0000.00716.63
7.4.190.0050.00216.75
7.4.160.0060.00916.47
7.4.150.0130.00517.40
7.4.140.0100.00717.86
7.4.130.0120.00916.43
7.4.120.0050.01216.62
7.4.110.0100.00616.49
7.4.100.0160.00316.65
7.4.90.0100.00716.58
7.4.80.0070.01019.39
7.4.70.0110.00616.50
7.4.60.0090.00816.35
7.4.50.0000.00916.53
7.4.40.0070.00722.77
7.4.30.0100.00716.77
7.4.00.0090.00915.13
7.3.330.0040.00413.32
7.3.320.0030.00313.10
7.3.310.0000.00716.12
7.3.300.0000.00716.17
7.3.290.0150.00616.26
7.3.280.0100.00616.29
7.3.270.0090.00917.40
7.3.260.0210.00616.45
7.3.250.0110.00516.25
7.3.240.0060.01016.22
7.3.230.0060.01516.39
7.3.210.0120.00916.42
7.3.200.0120.00919.39
7.3.190.0110.01116.51
7.3.180.0060.00916.33
7.3.170.0130.00316.27
7.3.160.0070.01016.37
7.3.120.0120.00314.97
7.2.330.0070.01116.38
7.2.320.0110.00716.30
7.2.310.0130.00316.67
7.2.300.0120.00416.59
7.2.290.0140.00616.42
7.2.60.0000.00816.68
7.1.200.0070.00715.63
7.1.100.0040.00418.20
7.1.70.0090.00917.02
7.1.60.0150.00919.82
7.1.50.0140.01116.57
7.1.00.0030.07722.39
7.0.200.0030.00916.75
7.0.140.0030.07322.09
7.0.60.0070.08719.91
7.0.50.0000.06317.84
7.0.40.0100.08720.13
7.0.30.0230.05020.09
7.0.20.0370.07720.25
7.0.10.0170.04720.24
7.0.00.0030.06720.19
5.6.280.0170.06320.79
5.6.210.0130.07320.69
5.6.200.0070.08318.21
5.6.190.0070.05720.46
5.6.180.3600.04320.46
5.6.170.0170.04020.52
5.6.160.0070.05320.45
5.6.150.0030.07718.29
5.6.140.0200.04318.11
5.6.130.0030.07318.14
5.6.120.0070.05721.13
5.6.110.0070.03720.94
5.6.100.0200.07020.97
5.6.90.0070.04321.08
5.6.80.0170.07020.39
5.6.70.0230.02720.50
5.5.350.0070.07720.53
5.5.340.0130.07318.04
5.5.330.0030.08020.46
5.5.320.0270.06720.25
5.5.310.0270.06720.42
5.5.300.0100.03717.96
5.5.290.0100.07717.95
5.5.280.0100.07720.91
5.5.270.0070.03720.84
5.5.260.0100.07320.65
5.5.250.0130.07020.70
5.5.240.0030.03720.16
5.4.450.0230.05719.45
5.4.440.0170.06319.38
5.4.430.0130.05019.41
5.4.420.0170.06019.46
5.4.410.0130.05019.42
5.4.400.0000.06018.84
5.4.390.0070.05718.89
5.4.380.0830.06318.61
5.4.370.0200.04718.60
5.4.360.0230.04318.56
5.4.350.0200.04718.61
5.4.340.0170.05018.60
5.4.320.0050.04512.50
5.4.310.0080.03512.50
5.4.300.0060.03812.50
5.4.290.0040.04012.50
5.4.280.0070.03412.40
5.4.270.0170.04719.14
5.4.260.0130.04719.10
5.4.250.0130.07019.01
5.4.240.0100.07719.05
5.4.230.0100.08019.07
5.4.220.0100.05019.04
5.4.210.0030.06319.05
5.4.200.0070.08019.05
5.4.190.0100.07319.00
5.4.180.0100.07318.91
5.4.170.0170.06719.02
5.4.160.0230.05019.06
5.4.150.0030.06019.02
5.4.140.0100.05716.68
5.4.130.0130.05016.75
5.4.120.0170.06016.66
5.4.110.0070.07316.72
5.4.100.0100.05016.55
5.4.90.0130.06016.74
5.4.80.0130.05716.62
5.4.70.0070.05716.76
5.4.60.0100.05016.55
5.4.50.0000.06316.66
5.4.40.0070.05316.47
5.4.30.0070.07016.60
5.4.20.0130.05016.39
5.4.10.0200.06016.66
5.4.00.0270.04316.09
5.3.290.0100.04112.80
5.3.280.0130.05314.89
5.3.270.0130.06714.80
5.3.260.0130.04714.67
5.3.250.0130.05314.80
5.3.240.0100.07014.89
5.3.230.0100.05314.65
5.3.220.0070.05714.56
5.3.210.0070.05714.86
5.3.200.0130.06314.84
5.3.190.0100.06314.76
5.3.180.0170.04314.62
5.3.170.0230.04014.85
5.3.160.0100.07314.61
5.3.150.0100.05314.86
5.3.140.0130.05314.83
5.3.130.0270.06014.55
5.3.120.0070.07314.66
5.3.110.0070.07314.82
5.3.100.0130.06314.23
5.3.90.0070.07313.92
5.3.80.0130.05314.20
5.3.70.0070.05014.20
5.3.60.0070.06314.05
5.3.50.0070.05713.84
5.3.40.0170.05314.13
5.3.30.0130.04314.12
5.3.20.0100.06713.76
5.3.10.0130.06713.95
5.3.00.0000.07713.93
5.2.170.0100.04011.20
5.2.160.0000.05711.27
5.2.150.0170.04711.20
5.2.140.0030.06711.43
5.2.130.0100.05011.32
5.2.120.0070.06011.22
5.2.110.0070.05011.16
5.2.100.0170.05011.27
5.2.90.0100.05311.39
5.2.80.0130.03711.05
5.2.70.0130.05311.11
5.2.60.0070.05011.25
5.2.50.0130.05311.20
5.2.40.0170.05311.05
5.2.30.0030.04311.16
5.2.20.0100.04311.17
5.2.10.0030.04011.03
5.2.00.0130.04310.90
5.1.60.0070.04710.29
5.1.50.0100.0439.98
5.1.40.0100.03010.16
5.1.30.0030.04310.51
5.1.20.0100.03310.65
5.1.10.0100.04710.37
5.1.00.0100.03010.29
5.0.50.0100.0338.60
5.0.40.0070.0408.73
5.0.30.0070.0478.44
5.0.20.0000.0308.51
5.0.10.0130.0278.39
5.0.00.0070.0378.16
4.4.90.0030.0237.46
4.4.80.0070.0177.46
4.4.70.0030.0277.46
4.4.60.0030.0207.46
4.4.50.0030.0277.46
4.4.40.0130.0337.46
4.4.30.0030.0277.46
4.4.20.0000.0237.46
4.4.10.0000.0337.46
4.4.00.0030.0337.46
4.3.110.0030.0277.46
4.3.100.0070.0177.46
4.3.90.0070.0277.46
4.3.80.0030.0377.46
4.3.70.0030.0307.46
4.3.60.0100.0137.46
4.3.50.0000.0337.46
4.3.40.0030.0307.46
4.3.30.0000.0277.46
4.3.20.0070.0277.46
4.3.10.0030.0207.46
4.3.00.0070.0206.88

preferences:
64.22 ms | 400 KiB | 5 Q