3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Car { public color = ""; public type; public function wheel (){ return "I have 4 wheels"; } public function tire (){ return 'size 17"'; } } $auto = new Car(); $auto->color = "red"; $auto->type = "sedan"; echo $car->wheel; echo $car->tire;

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.310.0230.04019.02
5.4.300.0300.06719.23
5.4.290.0330.07719.20
5.4.280.0300.04019.30
5.4.270.0270.06718.99
5.4.260.0200.07719.26
5.4.250.0300.07019.30
5.4.240.0300.06718.83
5.4.230.0370.06019.19
5.4.220.0200.04318.98
5.4.210.0230.07719.11
5.4.200.0270.07719.04
5.4.190.0200.03718.84
5.4.180.0270.03319.21
5.4.170.0270.04719.30
5.4.160.0370.06719.03
5.4.150.0300.05318.97
5.4.140.0230.06716.37
5.4.130.0400.06016.45
5.4.120.0430.03016.32
5.4.110.0270.03316.54
5.4.100.0230.06016.52
5.4.90.0270.06716.56
5.4.80.0300.06716.23
5.4.70.0300.05316.55
5.4.60.0200.03716.49
5.4.50.0330.06316.41
5.4.40.0230.04016.42
5.4.30.0300.07316.32
5.4.20.0300.06316.16
5.4.10.0270.06016.50
5.4.00.0330.07315.74
5.3.280.0370.04014.62
5.3.270.0230.05014.59
5.3.260.0330.06314.61
5.3.250.0200.06014.68
5.3.240.0230.07314.56
5.3.230.0330.06714.50
5.3.220.0430.03314.49
5.3.210.0300.06714.57
5.3.200.0300.05014.68
5.3.190.0230.03714.61
5.3.180.0230.04714.67
5.3.170.0230.07714.48
5.3.160.0170.04314.63
5.3.150.0230.05714.67
5.3.140.0200.08314.56
5.3.130.0270.05314.47
5.3.120.0300.05714.45
5.3.110.0270.04714.66
5.3.100.0200.08314.03
5.3.90.0330.06313.94
5.3.80.0270.07014.09
5.3.70.0300.07014.07
5.3.60.0200.05313.97
5.3.50.0230.05313.84
5.3.40.0300.05013.86
5.3.30.0300.04013.82
5.3.20.0330.05313.60
5.3.10.0230.03313.61
5.3.00.0200.03713.61

preferences:
139.56 ms | 1394 KiB | 7 Q