3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace "\1"; class trick { function doit() { print_r(__CLASS__); } function doitagain() { print_r(get_class($this)); } } $obj=new trick(); $obj->doit(); $obj->doitagain();

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.6.80.0070.03320.39
5.5.240.0100.07020.27
5.4.400.0200.06018.74
5.4.390.0070.06018.73
5.4.380.0130.05718.70
5.4.370.0270.04318.49
5.4.360.0130.05718.71
5.4.350.0170.06018.54
5.4.340.0330.03718.68
5.4.320.0300.05718.44
5.4.310.0130.05718.73
5.4.300.0070.06018.70
5.4.290.0200.05018.59
5.4.280.0200.04718.79
5.4.270.0230.04718.61
5.4.260.0100.05718.73
5.4.250.0170.05318.73
5.4.240.0070.06318.70
5.4.230.0130.06018.64
5.4.220.0130.05718.79
5.4.210.0170.05018.71
5.4.200.0200.05716.70
5.4.190.0200.04718.70
5.4.180.0170.05718.48
5.4.170.0130.05718.54
5.4.160.0030.06318.77
5.4.150.0070.06018.77
5.4.140.0200.04316.30
5.4.130.0170.04716.32
5.4.120.0100.05316.30
5.4.110.0230.04016.25
5.4.100.0030.06316.22
5.4.90.0170.04716.32
5.4.80.0200.04716.15
5.4.70.0200.04716.27
5.4.60.0270.04016.24
5.4.50.0230.04316.29
5.4.40.0130.05016.25
5.4.30.0170.04716.17
5.4.20.0200.04316.21
5.4.10.0070.05316.25
5.4.00.0030.06015.87
5.3.290.0130.05714.65
5.3.280.0200.05714.69
5.3.270.0070.06014.60
5.3.260.0130.05314.61
5.3.250.0200.05314.60
5.3.240.0270.04014.59
5.3.230.0100.05714.50
5.3.220.0170.05014.48
5.3.210.0100.05714.48
5.3.200.0170.05014.55
5.3.190.0230.04714.48
5.3.180.0070.06014.55
5.3.170.0130.05014.46
5.3.160.0070.07714.54
5.3.150.0100.05714.46
5.3.140.0170.07314.63
5.3.130.0230.07014.55
5.3.120.0100.05714.53
5.3.110.0270.05014.52
5.3.100.0200.04713.97
5.3.90.0200.05314.12
5.3.80.0270.04013.99
5.3.70.0130.05014.09
5.3.60.0130.05014.09
5.3.50.0130.05013.88
5.3.40.0130.05313.86
5.3.30.0100.05313.98
5.3.20.0130.05013.68
5.3.10.0070.05313.59
5.3.00.0200.05013.58
5.2.170.0070.04711.07
5.2.160.0030.04711.31
5.2.150.0170.03711.12
5.2.140.0070.04711.20
5.2.130.0130.04011.03
5.2.120.0100.04011.25
5.2.110.0070.04711.14
5.2.100.0100.04011.04
5.2.90.0170.03311.08
5.2.80.0100.04311.05
5.2.70.0130.04011.23
5.2.60.0130.04311.08
5.2.50.0100.04311.15
5.2.40.0130.03711.02
5.2.30.0100.04710.92
5.2.20.0170.03310.89
5.2.10.0130.03710.83
5.2.00.0100.04010.77
5.1.60.0030.03710.02
5.1.50.0030.04310.05
5.1.40.0070.03710.01
5.1.30.0100.03710.38
5.1.20.0070.04010.46
5.1.10.0100.03310.19
5.1.00.0100.04010.10
5.0.50.0100.0238.54
5.0.40.0100.0238.47
5.0.30.0030.0478.29
5.0.20.0130.0208.32
5.0.10.0070.0278.18
5.0.00.0100.0378.27
4.4.90.0070.0205.82
4.4.80.0030.0235.92
4.4.70.0070.0205.87
4.4.60.0070.0205.91
4.4.50.0070.0205.89
4.4.40.0130.0305.90
4.4.30.0070.0205.91
4.4.20.0070.0205.94
4.4.10.0070.0205.93
4.4.00.0030.0335.95
4.3.110.0070.0205.76
4.3.100.0100.0175.80
4.3.90.0000.0235.79
4.3.80.0000.0405.86
4.3.70.0070.0175.81
4.3.60.0070.0205.91
4.3.50.0100.0205.81
4.3.40.0100.0305.88
4.3.30.0000.0274.54
4.3.20.0030.0234.66
4.3.10.0100.0134.50
4.3.00.0070.0236.90

preferences:
131.78 ms | 1398 KiB | 7 Q