3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { protected function foo() {} } class Other extends Base { protected function foo() { echo "OK"; } } class Child extends Base { public function bar() { $otherBase = new Other(); $otherBase->foo(); } } $child = new Child(); $child->bar();

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.4.120.0080.00420.36
8.4.110.0120.01018.84
8.4.100.0120.00817.82
8.4.90.0090.01217.77
8.4.80.0100.01017.77
8.4.70.0020.00619.48
8.4.60.0120.00418.60
8.4.50.0050.00318.85
8.4.40.0100.01017.47
8.4.30.0060.00317.54
8.4.20.0100.01018.48
8.4.10.0090.00019.36
8.3.250.0120.00719.11
8.3.240.0140.00616.61
8.3.230.0130.00616.41
8.3.220.0100.00817.31
8.3.210.0060.00116.48
8.3.200.0050.00416.47
8.3.190.0110.00817.27
8.3.180.0120.00719.00
8.3.170.0040.01416.42
8.3.160.0040.00418.82
8.3.150.0100.01017.10
8.3.140.0100.00720.59
8.3.130.0040.00416.61
8.3.120.0040.00418.78
8.3.110.0130.00620.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0060.00316.63
8.3.70.0070.01416.58
8.3.60.0070.00716.50
8.3.50.0130.00721.20
8.3.40.0140.00718.71
8.3.30.0070.00718.60
8.3.20.0000.00720.96
8.3.10.0040.00421.73
8.3.00.0030.00619.68
8.2.290.0090.01020.62
8.2.280.0100.00918.15
8.2.270.0100.00616.77
8.2.260.0040.00416.36
8.2.250.0090.00618.39
8.2.240.0030.01718.87
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0070.00026.77
8.2.200.0040.00718.18
8.2.190.0040.01116.58
8.2.180.0130.00725.92
8.2.170.0120.00318.82
8.2.160.0100.00322.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00019.31
8.2.120.0040.00426.35
8.2.110.0060.00320.56
8.2.100.0090.00317.72
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0040.00418.03
8.2.50.0030.00518.10
8.2.40.0050.00322.14
8.2.30.0060.00319.12
8.2.20.0050.00217.91
8.2.10.0040.00417.97
8.2.00.0000.00717.48
8.1.330.0110.00916.73
8.1.320.0130.00716.33
8.1.310.0120.00316.23
8.1.300.0030.00618.32
8.1.290.0040.00430.84
8.1.280.0030.01225.92
8.1.270.0000.00824.02
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00317.48
8.1.230.0090.00317.64
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0040.00718.35
8.1.160.0040.00422.13
8.1.150.0000.00718.86
8.1.140.0040.00419.45
8.1.130.0080.00018.94
8.1.120.0000.00717.39
8.1.110.0020.00517.41
8.1.100.0030.00617.36
8.1.90.0000.00817.28
8.1.80.0070.00017.39
8.1.70.0000.00717.44
8.1.60.0000.00717.60
8.1.50.0040.00417.49
8.1.40.0050.00317.51
8.1.30.0030.00617.67
8.1.20.0040.00417.66
8.1.10.0040.00417.52
8.1.00.0060.00617.40
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.31
8.0.270.0080.00017.17
8.0.260.0000.00617.12
8.0.250.0000.00716.87
8.0.240.0030.00516.95
8.0.230.0070.00016.85
8.0.220.0000.00716.86
8.0.210.0000.00816.71
8.0.200.0060.00016.88
8.0.190.0030.00316.88
8.0.180.0070.00016.73
8.0.170.0040.00416.68
8.0.160.0000.00716.82
8.0.150.0040.00416.78
8.0.140.0000.00716.68
8.0.130.0030.00313.25
8.0.120.0050.00316.69
8.0.110.0080.00016.78
8.0.100.0000.00716.86
8.0.90.0000.00716.62
8.0.80.0090.00616.81
8.0.70.0000.00816.88
8.0.60.0000.00716.85
8.0.50.0000.00716.79
8.0.30.0090.00816.95
8.0.20.0090.01217.41
8.0.10.0070.00017.05
8.0.00.0060.01016.62
7.4.330.0040.00015.55
7.4.320.0000.00616.44
7.4.300.0030.00316.58
7.4.290.0030.00316.59
7.4.280.0080.00016.52
7.4.270.0000.00716.54
7.4.260.0000.00716.49
7.4.250.0030.00316.56
7.4.240.0030.00316.50
7.4.230.0040.00416.48
7.4.220.0190.00616.43
7.4.210.0030.01116.56
7.4.200.0050.00216.47
7.4.160.0110.00516.52
7.4.150.0040.01317.40
7.4.140.0090.01117.86
7.4.130.0100.00816.58
7.4.120.0090.01016.53
7.4.110.0140.00516.70
7.4.100.0100.01516.36
7.4.90.0180.00616.39
7.4.80.0120.01216.48
7.4.70.0060.01116.57
7.4.60.0040.01216.39
7.4.50.0040.01216.50
7.4.40.0060.01216.43
7.4.30.0130.01016.54
7.4.00.0100.00714.61
7.3.330.0000.00613.16
7.3.320.0020.00313.17
7.3.310.0040.00416.27
7.3.300.0000.00616.16
7.3.290.0090.00916.22
7.3.280.0100.00816.23
7.3.270.0070.01017.40
7.3.260.0110.00716.18
7.3.250.0060.01516.22
7.3.240.0170.00816.40
7.3.230.0070.01016.42
7.3.210.0100.00616.15
7.3.200.0100.00716.54
7.3.190.0060.01316.09
7.3.180.0060.00916.24
7.3.170.0080.00816.56
7.3.160.0070.01016.30
7.2.330.0050.01416.43
7.2.320.0100.00716.29
7.2.310.0100.00716.80
7.2.300.0090.01616.59
7.2.290.0030.01316.74
7.2.60.0130.00316.68
7.1.200.0000.00815.21
7.1.70.0070.00717.00
7.1.60.0080.00417.13
7.1.00.0070.06322.59
7.0.200.0060.00616.74
7.0.140.0030.05721.93
7.0.130.0100.06321.96
7.0.120.0000.07022.13
7.0.110.0100.05321.93
7.0.100.0070.05722.06
7.0.90.0030.06022.05
7.0.80.0170.06022.08
7.0.70.0030.06022.03
7.0.60.0100.05021.80
7.0.50.0170.05022.00
7.0.40.0030.05722.16
7.0.30.0030.05722.14
7.0.20.0000.06021.98
7.0.10.0100.05722.12
7.0.00.0100.05721.95
5.6.290.0100.05720.93
5.6.280.0030.06021.09
5.6.270.0100.05720.93
5.6.260.0170.05021.11
5.6.250.0030.05721.10
5.6.240.0030.06020.99
5.6.230.0030.06020.96
5.6.220.0030.06020.96
5.6.210.0100.07021.01
5.6.200.0130.05020.78
5.6.190.0000.06320.83
5.6.180.0070.05721.00
5.6.170.0070.05720.79
5.6.160.0130.05021.08
5.6.150.0100.05321.00
5.6.140.0030.06321.03
5.6.130.0130.04721.06
5.6.120.0100.05721.00
5.6.110.0130.05021.01
5.6.100.0070.06020.77
5.6.90.0130.05320.76
5.6.80.0030.05320.24
5.6.70.0130.06020.28
5.6.60.0030.07020.43
5.6.50.0130.05020.38
5.6.40.0000.05720.25
5.6.30.0100.05320.40
5.6.20.0100.05320.44
5.6.10.0200.04020.42
5.6.00.0200.04020.36

preferences:
32.6 ms | 403 KiB | 5 Q