3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Grandpa { public function test() { echo 'Grandpa test' . PHP_EOL; } } class Papa extends Grandpa { public function test() { echo 'Papa test before' . PHP_EOL; parent::test(); echo 'Papa test after' . PHP_EOL; } } class Kiddo extends Papa { public function test() { echo 'Kiddo test before' . PHP_EOL; parent::parent::test(); echo 'Kiddo test after' . PHP_EOL; } } (new Kiddo())->test();

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.0070.00718.40
8.3.50.0120.00618.19
8.3.40.0120.00318.84
8.3.30.0090.00618.68
8.3.20.0000.00821.79
8.3.10.0000.00821.90
8.3.00.0000.00821.73
8.2.180.0070.00716.50
8.2.170.0070.00722.96
8.2.160.0110.00418.86
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.36
8.2.120.0030.00626.35
8.2.110.0060.00320.27
8.2.100.0060.00320.39
8.1.280.0040.01125.92
8.1.270.0080.00022.24
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00018.51
8.1.230.0000.00920.10
7.3.20.0030.01016.63
7.3.10.0100.00716.64
7.3.00.0040.00716.49
7.2.150.0090.01216.60
7.2.140.0100.00316.35
7.2.130.0060.01616.53
7.2.120.0070.01116.72
7.2.110.0090.00916.80
7.2.100.0240.00915.48
7.2.90.0110.00915.62
7.2.80.0240.00915.02
7.2.70.1530.00815.18
7.2.60.1810.01115.25
7.2.50.1490.00815.41
7.2.40.1410.00615.33
7.2.30.1100.01115.35
7.2.20.0800.00916.45
7.2.10.0730.01116.39
7.2.00.0770.01116.50
7.1.250.0030.01315.45
7.1.240.0110.00715.49
7.1.230.0170.00315.20
7.1.220.2010.00714.55
7.1.210.0760.00914.37
7.1.200.0280.01014.27
7.1.190.1940.00914.21
7.1.180.1700.00514.00
7.1.170.1290.01014.16
7.1.160.1270.00814.17
7.1.150.1170.00814.18
7.1.140.0960.00414.25
7.1.130.1180.00714.13
7.1.120.0970.00815.28
7.1.110.0700.00715.19
7.1.100.1020.00715.10
7.1.90.0810.00815.05
7.1.80.0810.00615.15
7.1.70.0670.00614.73
7.1.60.0620.00728.49
7.1.50.0880.00628.37
7.1.40.0520.00928.33
7.1.30.0590.00928.28
7.1.20.0490.00828.31
7.1.10.0190.01014.67
7.1.00.0430.01214.78
7.0.330.0120.00414.89
5.6.380.0100.00914.17

preferences:
32.41 ms | 400 KiB | 5 Q