3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function hello() { } } $a = new A; var_dump([$a, 'hello'] instanceof Closure)

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.390.0200.06718.83
5.4.380.0200.05318.74
5.4.370.0330.05018.70
5.4.360.0200.07318.62
5.4.350.0170.07318.79
5.4.340.0170.06318.47
5.4.320.0270.07318.75
5.4.310.0130.08318.70
5.4.300.0370.04018.59
5.4.290.0130.06018.52
5.4.280.0200.05318.74
5.4.270.0200.05718.77
5.4.260.0170.05718.73
5.4.250.0300.06318.83
5.4.240.0230.05318.61
5.4.230.0230.07018.83
5.4.220.0200.05018.60
5.4.210.0230.05318.61
5.4.200.0230.04716.71
5.4.190.0200.05318.76
5.4.180.0200.05318.75
5.4.170.0170.06318.55
5.4.160.0070.07018.51
5.4.150.0300.04318.48
5.4.140.0200.05016.31
5.4.130.0270.05716.29
5.4.120.0300.05016.22
5.4.110.0170.05716.45
5.4.100.0130.05316.26
5.4.90.0030.06316.28
5.4.80.0230.04716.25
5.4.70.0230.05016.34
5.4.60.0130.05716.27
5.4.50.0100.05716.23
5.4.40.0170.05716.19
5.4.30.0100.06316.41
5.4.20.0130.06016.22
5.4.10.0300.04716.26
5.4.00.0270.05015.78
5.3.290.0230.05714.68
5.3.280.0130.06714.58
5.3.270.0230.05714.64
5.3.260.0270.04314.79
5.3.250.1200.05314.64
5.3.240.0170.05314.79
5.3.230.0130.05714.76
5.3.220.0130.06314.57
5.3.210.0200.05314.55
5.3.200.0230.05314.67
5.3.190.0130.08314.59
5.3.180.0100.06014.78
5.3.170.0170.07014.62
5.3.160.0200.05014.60
5.3.150.0170.06314.77
5.3.140.0130.05714.78
5.3.130.0130.06014.59
5.3.120.0200.05714.64
5.3.110.0100.06014.53
5.3.100.0070.06014.18
5.3.90.0170.04714.15
5.3.80.0200.06014.09
5.3.70.0070.06314.23
5.3.60.0130.05714.12
5.3.50.0170.06014.03
5.3.40.0200.05014.00
5.3.30.0170.06014.02
5.3.20.0170.04713.76
5.3.10.0200.06713.75
5.3.00.0170.07313.64
5.2.170.0200.05711.25
5.2.160.0200.05311.19
5.2.150.0100.06311.25
5.2.140.0230.05011.18
5.2.130.0100.05311.15
5.2.120.0230.03311.22
5.2.110.0130.04711.20
5.2.100.0130.04711.10
5.2.90.0200.03711.31
5.2.80.0100.05011.13
5.2.70.0230.03711.31
5.2.60.0070.04711.07
5.2.50.0130.04711.14
5.2.40.0200.03311.03
5.2.30.0130.04711.09
5.2.20.0170.03311.00
5.2.10.0100.04310.99
5.2.00.0100.04310.89
5.1.60.0100.03710.18
5.1.50.0200.02310.06
5.1.40.0200.02710.11
5.1.30.0170.03310.44
5.1.20.0070.05310.38
5.1.10.0200.04310.07
5.1.00.0130.04710.11
5.0.50.0130.0338.54
5.0.40.0170.0308.45
5.0.30.0130.0508.32
5.0.20.0030.0308.20
5.0.10.0200.0278.21
5.0.00.0100.0508.35
4.4.90.0070.0275.88
4.4.80.0030.0235.95
4.4.70.0100.0175.96
4.4.60.0030.0276.00
4.4.50.0070.0305.96
4.4.40.0070.0475.97
4.4.30.0070.0305.87
4.4.20.0070.0205.93
4.4.10.0000.0276.03
4.4.00.0130.0306.04
4.3.110.0070.0235.94
4.3.100.0070.0205.84
4.3.90.0000.0275.77
4.3.80.0030.0405.78
4.3.70.0030.0235.83
4.3.60.0030.0235.82
4.3.50.0070.0235.91
4.3.40.0070.0375.74
4.3.30.0030.0234.65
4.3.20.0070.0204.65
4.3.10.0100.0204.65
4.3.00.0030.0238.73

preferences:
142.26 ms | 1394 KiB | 7 Q