3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (int)(-5)

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.0050.03812.36
5.4.260.0130.07018.87
5.4.250.0030.06318.90
5.4.240.0130.05318.95
5.4.230.0030.05718.98
5.4.220.0070.08318.98
5.4.210.0170.06318.93
5.4.200.0130.06318.61
5.4.190.0070.05318.82
5.4.180.0230.06318.87
5.4.170.0100.07318.86
5.4.160.0070.06018.93
5.4.150.0070.07718.97
5.4.140.0170.05016.29
5.4.130.0070.07716.44
5.4.120.0230.04716.50
5.4.110.0070.05016.32
5.4.100.0100.05016.35
5.4.90.0170.05316.39
5.4.80.0130.05716.38
5.4.70.0130.05316.46
5.4.60.0100.05316.30
5.4.50.0200.05716.34
5.4.40.0070.06016.34
5.4.30.0130.07016.36
5.4.20.0170.06016.19
5.4.10.0230.06316.36
5.4.00.0070.06715.72
5.3.280.0070.06314.37
5.3.270.0100.07014.48
5.3.260.0170.07314.46
5.3.250.0100.07314.30
5.3.240.0230.06314.62
5.3.230.0170.05014.61
5.3.220.0170.06014.56
5.3.210.0130.05014.43
5.3.200.0070.05714.29
5.3.190.0070.06014.43
5.3.180.0200.06014.43
5.3.170.0030.07014.57
5.3.160.0200.06314.66
5.3.150.0070.07014.58
5.3.140.0100.05014.56
5.3.130.0130.06314.25
5.3.120.0130.05014.42
5.3.110.0100.06014.39
5.3.100.0100.06314.13
5.3.90.0030.05713.90
5.3.80.0100.04714.04
5.3.70.0070.06313.79
5.3.60.0030.05314.05
5.3.50.0070.05013.89
5.3.40.0070.07313.64
5.3.30.0130.06313.74
5.3.20.0030.07013.59
5.3.10.0100.05013.75
5.3.00.0100.04713.66
5.2.170.0130.05711.14
5.2.160.0030.04311.05
5.2.150.0030.05711.15
5.2.140.0100.03711.11
5.2.130.0130.04711.11
5.2.120.0130.03311.11
5.2.110.0100.03711.10
5.2.100.0070.04310.86
5.2.90.0100.04011.10
5.2.80.0070.04711.02
5.2.70.0070.06311.11
5.2.60.0030.04711.16
5.2.50.0000.04310.85
5.2.40.0030.04311.09
5.2.30.0130.05010.91
5.2.20.0100.03711.05
5.2.10.0170.04311.07
5.2.00.0070.05310.79
5.1.60.0100.04010.18
5.1.50.0130.02710.08
5.1.40.0100.0339.94
5.1.30.0130.03710.50
5.1.20.0130.04310.43
5.1.10.0070.0379.99
5.1.00.0070.05010.00
5.0.50.0070.0278.59
5.0.40.0070.0238.59
5.0.30.0030.0478.59
5.0.20.0070.0278.59
5.0.10.0030.0378.59
5.0.00.0130.0308.59
4.4.90.0000.0308.58
4.4.80.0030.0238.58
4.4.70.0030.0238.58
4.4.60.0070.0278.58
4.4.50.0070.0208.58
4.4.40.0070.0408.59
4.4.30.0070.0208.59
4.4.20.0070.0238.59
4.4.10.0030.0208.59
4.4.00.0070.0408.59
4.3.110.0070.0278.59
4.3.100.0100.0208.59
4.3.90.0000.0238.59
4.3.80.0030.0338.59
4.3.70.0070.0178.59
4.3.60.0000.0238.59
4.3.50.0030.0308.59
4.3.40.0000.0478.59
4.3.30.0000.0308.59
4.3.20.0000.0278.59
4.3.10.0030.0208.59
4.3.00.0030.01713.33

preferences:
141.51 ms | 1394 KiB | 7 Q