3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function getFoo() { return "FOO!"; } } class Bar { protected function getClass() { return 'Foo'; } } $a = new Bar(); $b = new $a->getClass(); var_dump($b->getFoo());

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.0060.01516.73
8.3.50.0130.00717.94
8.3.40.0060.00918.75
8.3.30.0040.01118.63
8.3.20.0080.00020.16
8.3.10.0070.00023.50
8.3.00.0000.00819.85
8.2.180.0040.01816.88
8.2.170.0070.00722.96
8.2.160.0110.00322.21
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00321.03
8.2.120.0060.00326.35
8.2.110.0170.00320.57
8.2.100.0080.00317.90
8.2.90.0050.00319.17
8.2.80.0040.00417.97
8.2.70.0030.00717.61
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0060.00320.39
8.2.30.0050.00220.61
8.2.20.0000.00817.73
8.2.10.0070.00018.08
8.2.00.0020.00517.92
8.1.280.0110.00425.92
8.1.270.0080.00020.23
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0100.01023.92
8.1.230.0090.00317.77
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0060.00317.00
8.1.180.0030.00618.10
8.1.170.0040.00418.46
8.1.160.0040.00420.66
8.1.150.0000.00818.91
8.1.140.0000.00819.39
8.1.130.0070.00017.54
8.1.120.0000.00717.38
8.1.110.0000.00817.39
8.1.100.0040.00417.28
8.1.90.0090.00017.38
8.1.80.0040.00417.33
8.1.70.0030.00317.41
8.1.60.0040.00417.43
8.1.50.0030.00617.57
8.1.40.0040.00417.40
8.1.30.0030.00617.56
8.1.20.0080.00017.50
8.1.10.0070.00017.61
8.1.00.0000.00717.49
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0030.00318.25
8.0.270.0000.00717.10
8.0.260.0060.00017.25
8.0.250.0030.00316.99
8.0.240.0000.00616.98
8.0.230.0030.00317.02
8.0.220.0000.00716.86
8.0.210.0000.00716.91
8.0.200.0040.00416.95
8.0.190.0040.00416.99
8.0.180.0030.00716.96
8.0.170.0050.00216.99
8.0.160.0070.00016.91
8.0.150.0050.00516.84
8.0.140.0040.00416.70
8.0.130.0000.00513.40
8.0.120.0000.00716.82
8.0.110.0000.00716.82
8.0.100.0040.00416.69
8.0.90.0050.00216.81
8.0.80.0140.00716.82
8.0.70.0070.00016.96
8.0.60.0000.00716.69
8.0.50.0040.00416.77
8.0.30.0130.00417.00
8.0.20.0140.00417.40
8.0.10.0070.00017.13
8.0.00.0100.00716.68
7.4.330.0050.00016.67
7.4.320.0000.00716.45
7.4.300.0060.00016.42
7.4.290.0030.00316.60
7.4.280.0030.00616.51
7.4.270.0070.00016.42
7.4.260.0090.00016.48
7.4.250.0000.00716.61
7.4.240.0020.00516.45
7.4.230.0030.00316.48
7.4.220.0160.00316.59
7.4.210.0030.01016.71
7.4.200.0030.00316.47
7.4.160.0100.01316.42
7.4.150.0100.00717.40
7.4.140.0140.00817.86
7.4.130.0050.01416.47
7.4.120.0110.00816.60
7.4.110.0110.01116.55
7.4.100.0130.01016.71
7.4.90.0080.00916.53
7.4.80.0110.01119.39
7.4.70.0040.01316.77
7.4.60.0120.00416.62
7.4.50.0060.00916.52
7.4.40.0100.00616.57
7.4.30.0140.00616.53
7.4.00.0000.01614.65
7.3.330.0030.00313.29
7.3.320.0030.00313.37
7.3.310.0030.00316.28
7.3.300.0030.00316.21
7.3.290.0060.00916.26
7.3.280.0120.00716.29
7.3.270.0070.01017.40
7.3.260.0030.01316.27
7.3.250.0110.00916.47
7.3.240.0120.01016.40
7.3.230.0130.00416.50
7.3.210.0180.00016.43
7.3.200.0100.00616.21
7.3.190.0070.01716.25
7.3.180.0120.00316.30
7.3.170.0110.00516.48
7.3.160.0070.01416.39
7.2.330.0030.01616.48
7.2.320.0080.00816.70
7.2.310.0090.00616.50
7.2.300.0030.01516.72
7.2.290.0170.00316.69
7.2.60.0100.00616.85
7.2.00.0000.01219.37
7.1.200.0060.00615.80
7.1.100.0040.00718.16
7.1.70.0050.00216.98
7.1.60.0060.01919.13
7.1.50.0040.00716.93
7.1.00.0030.07722.31
7.0.200.0080.00316.57
7.0.60.0000.08719.89
7.0.50.0100.05717.81
7.0.40.0100.05320.02
7.0.30.0300.04720.34
7.0.20.0200.04320.17
7.0.10.0030.05720.26
7.0.00.0030.04320.32
5.6.280.0000.06021.11
5.6.210.0070.03720.48
5.6.200.0130.07718.13
5.6.190.0030.05320.53
5.6.180.0230.04320.64
5.6.170.0330.07020.54
5.6.160.0200.07720.48
5.6.150.0100.06318.29
5.6.140.0200.07018.17
5.6.130.0100.07718.20
5.6.120.0030.05721.00
5.6.110.0030.06020.96
5.6.100.0070.04721.13
5.6.90.0130.03020.97
5.6.80.0100.08020.48
5.5.350.0130.08020.47
5.5.340.0030.03718.04
5.5.330.0070.07720.13
5.5.320.0230.07720.36
5.5.310.0270.04020.27
5.5.300.0070.08017.94
5.5.290.0100.06317.98
5.5.280.0070.08320.96
5.5.270.0100.08020.82
5.5.260.0130.07320.73
5.5.250.0030.07720.75
5.5.240.0230.03720.13

preferences:
65.96 ms | 400 KiB | 5 Q