3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private function __construct() {} } class bar extends foo { private function __construct() {} static public foob() { return new self(); } } var_dump(bar::foob());

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)
5.4.300.0410.04615.90
5.4.290.0380.04815.81
5.4.280.0350.05215.75
5.4.270.0370.04915.83
5.4.260.0410.04815.84
5.4.250.0360.05215.75
5.4.240.0460.05015.70
5.4.230.0380.05715.86
5.4.220.0480.05515.84
5.4.210.0470.05015.70
5.4.200.0530.05415.71
5.4.190.0480.04915.67
5.4.180.0490.04815.81
5.4.170.0460.05415.76
5.4.160.0440.05115.84
5.4.150.0410.05415.68
5.4.140.0490.04714.42
5.4.130.0430.04914.26
5.4.120.0480.04614.24
5.4.110.0440.05314.24
5.4.100.0420.05114.15
5.4.90.0470.05014.36
5.4.80.0430.05114.12
5.4.70.0430.05114.30
5.4.60.0360.04914.30
5.4.50.0410.05514.20
5.4.40.0350.04914.13
5.4.30.0460.04814.19
5.4.20.0410.05214.29
5.4.10.0520.04914.31
5.4.00.0460.04613.65
5.3.280.0510.04713.76
5.3.270.0530.04913.69
5.3.260.0460.05413.65
5.3.250.0480.05413.67
5.3.240.0470.04913.59
5.3.230.0440.06013.65
5.3.220.0490.06713.61
5.3.210.0480.05513.63
5.3.200.0440.05613.62
5.3.190.0530.04913.58
5.3.180.0510.06013.55
5.3.170.0530.06113.56
5.3.160.0560.08213.64
5.3.150.0520.06313.63
5.3.140.0510.05113.57
5.3.130.0430.05513.56
5.3.120.0460.05413.64
5.3.110.0420.05213.60
5.3.100.0460.04913.04
5.3.90.0420.04813.02
5.3.80.0460.04413.02
5.3.70.0460.04613.13
5.3.60.0480.04613.05
5.3.50.0410.04912.93
5.3.40.0420.05013.01
5.3.30.0460.04412.95
5.3.20.0440.04512.76
5.3.10.0470.04212.72
5.3.00.0550.05412.64

preferences:
143.3 ms | 1394 KiB | 7 Q