3v4l.org

run code in 300+ PHP versions simultaneously
<?php function (Foo $foo) { $foo = new Bar; echo get_class($foo); } class Foo {} class Bar {}

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.270.0070.07718.79
5.4.260.0170.06018.93
5.4.250.0030.05318.89
5.4.240.0130.04718.93
5.4.230.0170.05018.94
5.4.220.0070.07318.75
5.4.210.0230.06318.83
5.4.200.0100.05318.78
5.4.190.0130.05018.83
5.4.180.0070.08318.91
5.4.170.0100.07018.63
5.4.160.0070.06018.98
5.4.150.0230.07018.73
5.4.140.0070.06716.42
5.4.130.0230.05716.38
5.4.120.0070.05316.46
5.4.110.0100.04716.35
5.4.100.0100.05316.55
5.4.90.0100.04716.55
5.4.80.0200.05716.45
5.4.70.0070.06316.31
5.4.60.0170.04016.58
5.4.50.0130.06716.36
5.4.40.0100.05016.46
5.4.30.0170.04316.23
5.4.20.0070.07016.43
5.4.10.0200.05716.38
5.4.00.0230.05315.91
5.3.280.0100.06014.68
5.3.270.0070.07714.69
5.3.260.0100.05714.78
5.3.250.0200.06714.58
5.3.240.0030.07014.67
5.3.230.0130.06714.60
5.3.220.0170.04014.65
5.3.210.0100.07714.65
5.3.200.0130.04714.64
5.3.190.0170.06314.70
5.3.180.0070.07714.47
5.3.170.0170.05014.74
5.3.160.0130.04714.64
5.3.150.0100.05314.65
5.3.140.0200.06014.62
5.3.130.0030.07314.61
5.3.120.0130.04714.71
5.3.110.0130.07314.72
5.3.100.0130.05714.13
5.3.90.0300.03714.12
5.3.80.0070.05714.01
5.3.70.0170.06013.94
5.3.60.0030.05314.07
5.3.50.0070.05313.99
5.3.40.0170.04313.77
5.3.30.0130.04313.88
5.3.20.0100.04713.66
5.3.10.0000.08013.68
5.3.00.0130.05313.63
5.2.170.0070.04311.07
5.2.160.0070.03711.13
5.2.150.0070.05710.97
5.2.140.0130.04710.89
5.2.130.0100.03711.03
5.2.120.0070.04711.25
5.2.110.0070.04710.98
5.2.100.0130.03311.11
5.2.90.0070.04011.02
5.2.80.0030.04311.19
5.2.70.0030.04711.09
5.2.60.0030.04710.81
5.2.50.0030.05711.03
5.2.40.0130.04010.99
5.2.30.0130.05310.75
5.2.20.0130.03310.96
5.2.10.0070.04010.77
5.2.00.0030.04010.65
5.1.60.0130.03310.02
5.1.50.0030.0339.84
5.1.40.0070.03710.06
5.1.30.0100.04710.49
5.1.20.0070.05310.25
5.1.10.0070.04710.26
5.1.00.0070.0479.98
5.0.50.0030.0308.45
5.0.40.0030.0308.34
5.0.30.0030.0408.13
5.0.20.0070.0278.24
5.0.10.0030.0308.35
5.0.00.0100.0578.23
4.4.90.0070.0236.71
4.4.80.0000.0306.71
4.4.70.0000.0236.71
4.4.60.0000.0236.71
4.4.50.0030.0206.71
4.4.40.0070.0376.71
4.4.30.0000.0276.71
4.4.20.0030.0206.71
4.4.10.0000.0236.83
4.4.00.0100.0376.83
4.3.110.0000.0306.83
4.3.100.0030.0276.83
4.3.90.0030.0206.83
4.3.80.0100.0336.83
4.3.70.0030.0336.83
4.3.60.0030.0206.83
4.3.50.0000.0236.83
4.3.40.0030.0336.83
4.3.30.0000.0236.83
4.3.20.0000.0236.83
4.3.10.0000.0236.83
4.3.00.0170.01715.57

preferences:
140.42 ms | 1394 KiB | 7 Q