3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hex = '0x10'; var_dump(1 + ((int)$hex) ); int(1) var_dump((int)++$hex); int(17)

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.90.0070.08721.00
5.6.80.0100.06720.40
5.5.250.0100.05020.54
5.5.240.0130.07320.15
5.4.410.0070.06718.68
5.4.400.0100.06018.51
5.4.390.0170.07018.84
5.4.380.0230.05318.57
5.4.370.0130.07718.51
5.4.360.0230.04718.60
5.4.350.0070.06718.60
5.4.340.0170.05718.77
5.4.320.0170.07318.62
5.4.310.0070.06318.75
5.4.300.0230.06318.84
5.4.290.0100.06318.78
5.4.280.0130.05718.74
5.4.270.0130.05718.57
5.4.260.0170.05018.73
5.4.250.0130.06718.78
5.4.240.0130.05718.80
5.4.230.0230.05018.47
5.4.220.0230.06018.68
5.4.210.0200.07018.77
5.4.200.0270.05316.51
5.4.190.0170.07318.77
5.4.180.0300.05018.43
5.4.170.0200.07018.79
5.4.160.0230.05318.73
5.4.150.0170.07318.82
5.4.140.0100.06716.25
5.4.130.0070.05716.42
5.4.120.0170.05716.29
5.4.110.0230.04016.43
5.4.100.0170.06316.26
5.4.90.0270.05716.31
5.4.80.0130.05316.27
5.4.70.0130.05716.29
5.4.60.0230.05316.41
5.4.50.0100.07016.38
5.4.40.0170.07016.40
5.4.30.0200.05716.38
5.4.20.0170.06016.39
5.4.10.0170.06016.39
5.4.00.0070.05315.64
5.3.290.0000.07014.63
5.3.280.0100.07014.52
5.3.270.0200.05314.59
5.3.260.0130.05714.51
5.3.250.0100.05714.64
5.3.240.0100.05714.70
5.3.230.0200.05314.53
5.3.220.0100.06314.66
5.3.210.0230.06314.55
5.3.200.0100.05314.63
5.3.190.0100.07314.54
5.3.180.0070.05714.56
5.3.170.0170.06714.50
5.3.160.0100.07314.64
5.3.150.0130.07714.64
5.3.140.0230.05014.50
5.3.130.0130.05314.58
5.3.120.0170.07014.46
5.3.110.0100.07314.51
5.3.100.0130.05014.07
5.3.90.0170.04314.09
5.3.80.0100.05313.91
5.3.70.0100.05713.95
5.3.60.0100.05313.97
5.3.50.0100.05013.89
5.3.40.0200.04013.85
5.3.30.0100.05013.82
5.3.20.0130.06013.68
5.3.10.0070.07013.57
5.3.00.0170.06013.60
5.2.170.0170.04711.28
5.2.160.0070.05011.18
5.2.150.0070.05011.13
5.2.140.0100.05311.20
5.2.130.0070.05711.15
5.2.120.0030.05711.25
5.2.110.0170.04011.03
5.2.100.0000.06711.06
5.2.90.0200.04311.04
5.2.80.0070.06011.13
5.2.70.0070.04711.01
5.2.60.0030.06311.02
5.2.50.0070.05311.08
5.2.40.0170.03311.05
5.2.30.0070.04710.95
5.2.20.0170.04711.02
5.2.10.0070.04010.91
5.2.00.0030.04710.79
5.1.60.0100.04710.13
5.1.50.0070.05010.09
5.1.40.0000.0579.93
5.1.30.0030.05010.47
5.1.20.0100.04310.46
5.1.10.0070.03710.04
5.1.00.0100.05010.04
5.0.50.0100.0308.58
5.0.40.0030.0308.41
5.0.30.0100.0438.25
5.0.20.0100.0238.38
5.0.10.0030.0408.30
5.0.00.0070.0438.19
4.4.90.0100.0235.93
4.4.80.0000.0275.85
4.4.70.0070.0235.91
4.4.60.0070.0205.89
4.4.50.0000.0305.82
4.4.40.0070.0335.92
4.4.30.0070.0235.88
4.4.20.0000.0275.95
4.4.10.0000.0305.97
4.4.00.0070.0335.84
4.3.110.0030.0305.75
4.3.100.0030.0235.80
4.3.90.0070.0235.88
4.3.80.0070.0375.91
4.3.70.0100.0205.86
4.3.60.0070.0235.78
4.3.50.0000.0305.91
4.3.40.0100.0305.76
4.3.30.0000.0274.58
4.3.20.0070.0204.66
4.3.10.0030.0234.59
4.3.00.0030.01715.70

preferences:
145.8 ms | 1394 KiB | 7 Q