3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hex = '0x10'; php > var_dump(1 + ((int)$hex) ); int(1) php > 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.0130.07320.99
5.6.80.0130.04020.42
5.5.250.0030.06320.77
5.5.240.0000.08720.25
5.4.410.0200.05319.06
5.4.400.0170.05718.87
5.4.390.0200.05318.75
5.4.380.0130.05718.53
5.4.370.0170.05318.75
5.4.360.0170.04718.70
5.4.350.0100.05718.84
5.4.340.0130.05018.75
5.4.320.0100.05718.68
5.4.310.0100.05718.55
5.4.300.0030.06018.57
5.4.290.0000.06318.78
5.4.280.0000.07318.55
5.4.270.0170.06018.76
5.4.260.0130.07018.85
5.4.250.0200.05018.80
5.4.240.0030.06318.74
5.4.230.0170.04718.57
5.4.220.0130.05718.50
5.4.210.0130.05018.83
5.4.200.0070.05316.64
5.4.190.0100.06718.54
5.4.180.0100.06018.43
5.4.170.0070.07018.79
5.4.160.0170.05318.82
5.4.150.0100.05318.47
5.4.140.0100.05316.21
5.4.130.0200.03716.27
5.4.120.0070.05316.29
5.4.110.0070.06016.27
5.4.100.0130.05016.27
5.4.90.0070.05716.27
5.4.80.0100.05316.27
5.4.70.0100.05316.21
5.4.60.0070.05716.26
5.4.50.0170.04716.28
5.4.40.0070.06316.29
5.4.30.0200.06016.25
5.4.20.0100.05316.21
5.4.10.0130.04716.39
5.4.00.0070.05015.64
5.3.290.0130.05014.64
5.3.280.0170.04714.59
5.3.270.0100.05714.53
5.3.260.0130.06014.59
5.3.250.0100.06714.70
5.3.240.0100.05314.63
5.3.230.0130.06314.54
5.3.220.0170.05014.47
5.3.210.0070.05714.55
5.3.200.0100.05014.61
5.3.190.0170.04714.54
5.3.180.0100.05014.66
5.3.170.0070.05714.66
5.3.160.0170.04714.63
5.3.150.0130.04714.55
5.3.140.0100.05014.52
5.3.130.0070.05714.58
5.3.120.0170.06314.64
5.3.110.0100.06014.48
5.3.100.0070.05713.96
5.3.90.0070.05314.12
5.3.80.0070.05313.91
5.3.70.0100.05313.97
5.3.60.0170.05313.95
5.3.50.0100.05314.04
5.3.40.0000.05713.93
5.3.30.0070.05013.90
5.3.20.0130.04713.64
5.3.10.0130.05313.75
5.3.00.0070.05313.67
5.2.170.0170.03711.15
5.2.160.0070.04711.20
5.2.150.0100.04011.13
5.2.140.0030.05011.13
5.2.130.0070.04311.13
5.2.120.0030.04711.05
5.2.110.0130.03711.25
5.2.100.0130.03711.05
5.2.90.0070.04311.24
5.2.80.0070.04311.13
5.2.70.0130.05711.07
5.2.60.0000.05011.05
5.2.50.0100.04011.05
5.2.40.0030.04311.04
5.2.30.0000.05011.01
5.2.20.0130.04311.13
5.2.10.0100.04310.91
5.2.00.0070.05010.70
5.1.60.0130.0339.99
5.1.50.0030.03710.01
5.1.40.0030.03710.09
5.1.30.0130.03010.38
5.1.20.0170.03710.50
5.1.10.0030.03710.20
5.1.00.0070.03710.09
5.0.50.0030.0308.55
5.0.40.0000.0338.43
5.0.30.0100.0408.20
5.0.20.0070.0278.21
5.0.10.0030.0308.27
5.0.00.0000.0538.29
4.4.90.0070.0205.92
4.4.80.0070.0205.88
4.4.70.0030.0275.86
4.4.60.0000.0235.87
4.4.50.0000.0235.83
4.4.40.0100.0375.89
4.4.30.0070.0205.89
4.4.20.0130.0135.98
4.4.10.0000.0275.96
4.4.00.0000.0405.94
4.3.110.0070.0205.84
4.3.100.0070.0205.82
4.3.90.0000.0235.81
4.3.80.0030.0375.79
4.3.70.0030.0275.89
4.3.60.0030.0235.82
4.3.50.0070.0205.86
4.3.40.0000.0435.74
4.3.30.0000.0274.56
4.3.20.0000.0234.53
4.3.10.0070.0204.47
4.3.00.0100.03015.70

preferences:
151.81 ms | 1394 KiB | 7 Q