3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(in_array('A', get_declared_classes())); if TRUE { class A {}} print_r(in_array('A', get_declared_classes()));

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.0130.05718.88
5.4.260.0100.05318.83
5.4.250.0170.06318.97
5.4.240.0100.05718.91
5.4.230.0100.05718.99
5.4.220.0200.04719.00
5.4.210.0130.07018.91
5.4.200.0200.04319.09
5.4.190.0070.06019.00
5.4.180.0130.06718.82
5.4.170.0200.04718.91
5.4.160.0030.08718.90
5.4.150.0170.06719.08
5.4.140.0200.05716.61
5.4.130.0100.04716.39
5.4.120.0130.06716.39
5.4.110.0130.05316.68
5.4.100.0070.06316.62
5.4.90.0070.05016.69
5.4.80.0100.05316.67
5.4.70.0070.05716.66
5.4.60.0130.06716.55
5.4.50.0230.06316.65
5.4.40.0130.05016.67
5.4.30.0100.06716.63
5.4.20.0130.06316.54
5.4.10.0030.06716.54
5.4.00.0200.05715.84
5.3.280.0170.05314.74
5.3.270.0100.06714.60
5.3.260.0200.05014.42
5.3.250.0130.07314.59
5.3.240.0100.05014.60
5.3.230.0070.06314.59
5.3.220.0130.07314.63
5.3.210.0070.08314.55
5.3.200.0200.06314.63
5.3.190.0130.06014.52
5.3.180.0100.07014.49
5.3.170.0100.04714.55
5.3.160.0100.06014.67
5.3.150.0070.07314.55
5.3.140.0100.07014.70
5.3.130.0170.05014.54
5.3.120.0100.06014.54
5.3.110.0070.06014.66
5.3.100.0030.06313.96
5.3.90.0170.07714.01
5.3.80.0070.05314.10
5.3.70.0100.06714.10
5.3.60.0030.07314.21
5.3.50.0170.06314.09
5.3.40.0000.06013.75
5.3.30.0200.05314.08
5.3.20.0200.06013.48
5.3.10.0130.07013.63
5.3.00.0100.05313.70
5.2.170.0100.05311.30
5.2.160.0000.06711.25
5.2.150.0030.06011.28
5.2.140.0130.05711.28
5.2.130.0000.04711.29
5.2.120.0130.03311.25
5.2.110.0070.04011.32
5.2.100.0130.04011.22
5.2.90.0000.06311.30
5.2.80.0030.04710.89
5.2.70.0130.05311.21
5.2.60.0000.05710.98
5.2.50.0030.04311.18
5.2.40.0100.04011.23
5.2.30.0100.04311.20
5.2.20.0070.06311.01
5.2.10.0070.04710.85
5.2.00.0100.04010.73
5.1.60.0070.0339.98
5.1.50.0100.04010.07
5.1.40.0100.02710.13
5.1.30.0030.04010.61
5.1.20.0170.04710.57
5.1.10.0070.04710.15
5.1.00.0100.03010.22
5.0.50.0100.0338.59
5.0.40.0000.0338.48
5.0.30.0070.0538.34
5.0.20.0000.0308.45
5.0.10.0030.0378.05
5.0.00.0030.0438.36
4.4.90.0100.0177.10
4.4.80.0100.0177.10
4.4.70.0000.0337.10
4.4.60.0030.0207.10
4.4.50.0030.0207.10
4.4.40.0030.0377.10
4.4.30.0070.0207.10
4.4.20.0100.0337.10
4.4.10.0030.0307.10
4.4.00.0030.0377.09
4.3.110.0030.0277.09
4.3.100.0070.0177.09
4.3.90.0070.0207.09
4.3.80.0130.0237.09
4.3.70.0100.0177.09
4.3.60.0030.0207.09
4.3.50.0030.0237.09
4.3.40.0070.0307.09
4.3.30.0000.0237.09
4.3.20.0000.0237.09
4.3.10.0070.0237.09
4.3.00.0000.02315.58

preferences:
134.9 ms | 1398 KiB | 7 Q