3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Programmer extends Monkey{ $dress = array(); function __construct(){ $this->__init(); $this->__wear(); } public function __init(){ $this->hair = 'sparse'; $this->hasGF = FALSE; } public function __wear(){ $this->dress= array( 'cloth' => '冲锋衣', 'trousers' => '牛仔裤', 'shoes' => '运动鞋', ); } public function getLove(){ //TODO : 别写了,这个功能你实现不了的 if(time() >= 1415635200|| time() < 1415721600){ $this->surf('http://segmentfault.com'); } return $this; } } $man = new Programmer(); for($i=0;$i<1;$i--){ $man->getLove(); }

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.340.3270.03319.23
5.4.320.3370.04019.17
5.4.310.2930.03719.23
5.4.300.3370.03719.22
5.4.290.3370.03319.24
5.4.280.3100.03319.20
5.4.270.3300.03319.07
5.4.260.3330.03719.08
5.4.250.3300.02719.20
5.4.240.3030.03318.83
5.4.230.3200.03318.82
5.4.220.3370.03718.99
5.4.210.3270.03719.19
5.4.200.3300.03718.86
5.4.190.3530.04318.97
5.4.180.3330.03319.13
5.4.170.3270.04019.06
5.4.160.3230.04319.06
5.4.150.3000.04018.98
5.4.140.3270.04016.31
5.4.130.3270.03716.29
5.4.120.3000.04316.51
5.4.110.3000.04016.58
5.4.100.3370.03316.54
5.4.90.3270.03316.53
5.4.80.2870.04016.34
5.4.70.3170.03716.50
5.4.60.4130.03316.48
5.4.50.3270.04016.53
5.4.40.3270.04016.52
5.4.30.3230.03716.50
5.4.20.3300.03716.25
5.4.10.3300.04016.54
5.4.00.3330.03715.76
5.3.290.3330.03314.63
5.3.280.2830.03714.51
5.3.270.3300.03314.65
5.3.260.3000.04314.52
5.3.250.3070.03714.68
5.3.240.3230.04014.61
5.3.230.2530.04014.81
5.3.220.3330.03014.46
5.3.210.3570.04014.58
5.3.200.3130.04014.47
5.3.190.3070.04014.54
5.3.180.4070.03714.47
5.3.170.3430.04014.56
5.3.160.4070.03314.48
5.3.150.3300.03714.63
5.3.140.3330.04014.67
5.3.130.3330.03314.77
5.3.120.3300.04014.56
5.3.110.3200.04014.52
5.3.100.3270.03314.05
5.3.90.3430.04014.16
5.3.80.3300.04013.91
5.3.70.3300.03013.92
5.3.60.3370.03014.01
5.3.50.3300.04013.95
5.3.40.3100.03714.02
5.3.30.3200.02714.05
5.3.20.3630.04313.66
5.3.10.3670.03313.58
5.3.00.3270.02313.55
5.2.170.2600.02311.25
5.2.160.2700.03711.25
5.2.150.2570.03011.25
5.2.140.2500.03011.25
5.2.130.2830.02711.25
5.2.120.2730.02311.25
5.2.110.2470.03311.25
5.2.100.2970.03011.25
5.2.90.2830.02711.25
5.2.80.2900.03311.25
5.2.70.2370.03011.25
5.2.60.2930.02311.25
5.2.50.2700.03011.25
5.2.40.2300.03011.25
5.2.30.2200.02711.25
5.2.20.2030.03011.25
5.2.10.2000.03011.25
5.2.00.2300.03311.25
5.1.60.2430.02311.25
5.1.50.2300.02011.25
5.1.40.2330.03011.25
5.1.30.2100.02711.25
5.1.20.2800.02011.25
5.1.10.2230.03011.25
5.1.00.2270.03011.25
5.0.50.1300.02311.25
5.0.40.1070.01711.25
5.0.30.1030.03011.25
5.0.20.1030.02011.25
5.0.10.1130.01711.25
5.0.00.1030.03011.25
4.4.90.1030.01311.25
4.4.80.1100.02011.25
4.4.70.1000.01311.25
4.4.60.1170.01711.25
4.4.50.1030.01311.25
4.4.40.1230.03011.25
4.4.30.1370.01311.25
4.4.20.1270.01711.25
4.4.10.1230.01711.25
4.4.00.1030.02011.25
4.3.110.0970.01711.25
4.3.100.1200.02011.25
4.3.90.1130.01711.25
4.3.80.1130.02711.25
4.3.70.1000.01311.25
4.3.60.1000.01311.25
4.3.50.1030.01711.25
4.3.40.1270.02711.25
4.3.30.0570.02011.25
4.3.20.0630.02311.25
4.3.10.0700.02011.25
4.3.00.0670.02711.25

preferences:
146.79 ms | 1394 KiB | 7 Q