3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(intval('0123', 0)); var_dump(intval('0xabc', 0)); var_dump(intval('0b1101', 0));

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)
8.1.130.0030.00320.11
8.1.120.0080.00017.30
8.1.110.0040.00417.21
8.1.100.0050.00517.33
8.1.90.0070.00017.29
8.1.80.0040.00417.35
8.1.70.0040.00417.19
8.1.60.0050.00217.46
8.1.50.0000.00917.28
8.1.40.0030.00517.26
8.1.30.0000.00917.52
8.1.20.0050.00317.45
8.1.10.0050.00317.38
8.1.00.0060.00617.32
8.0.260.0000.00618.67
8.0.250.0000.00716.74
8.0.240.0040.00416.84
8.0.230.0050.00316.77
8.0.220.0030.00316.69
8.0.210.0000.00716.65
8.0.200.0000.00616.78
8.0.190.0060.00616.77
8.0.180.0000.00716.76
8.0.170.0040.00416.83
8.0.160.0080.00016.72
8.0.150.0030.00516.76
8.0.140.0040.00416.70
8.0.130.0060.00013.23
8.0.120.0040.00416.71
8.0.110.0030.00516.69
8.0.100.0030.00316.73
8.0.90.0000.00716.55
8.0.80.0070.01416.64
8.0.70.0040.00416.71
8.0.60.0040.00416.63
8.0.50.0040.00416.63
8.0.30.0060.01316.98
8.0.20.0100.00817.40
8.0.10.0050.00216.86
8.0.00.0080.00916.45
7.4.330.0000.00515.55
7.4.320.0070.00016.30
7.4.300.0000.00616.39
7.4.290.0070.00016.51
7.4.280.0070.00016.37
7.4.270.0070.00016.38
7.4.260.0030.00316.25
7.4.250.0070.00016.43
7.4.240.0030.00316.45
7.4.230.0030.00316.36
7.4.220.0140.00416.34
7.4.210.0100.01116.29
7.4.200.0030.00316.40
7.4.160.0070.00716.16
7.4.150.0060.01217.40
7.4.140.0120.00717.86
7.4.130.0090.00916.38
7.4.120.0150.00816.31
7.4.110.0100.00716.37
7.4.100.0130.00416.52
7.4.90.0100.00716.34
7.4.80.0000.01819.39
7.4.70.0070.01416.34
7.4.60.0070.01016.34
7.4.50.0030.00716.07
7.4.40.0180.00816.50
7.4.30.0080.00916.25
7.4.00.0100.00314.89
7.3.330.0050.00013.02
7.3.320.0030.00313.05
7.3.310.0070.00016.14
7.3.300.0070.00016.07
7.3.290.0050.00316.09
7.3.280.0080.01016.14
7.3.270.0160.00817.40
7.3.260.0150.00416.41
7.3.250.0080.00916.28
7.3.240.0120.00616.19
7.3.230.0110.01116.39
7.3.210.0120.00616.22
7.3.200.0100.00616.24
7.3.190.0040.01216.17
7.3.180.0030.01316.40
7.3.170.0130.01016.12
7.3.160.0070.01016.25
7.2.330.0070.01016.31
7.2.320.0090.00916.54
7.2.310.0170.00016.11
7.2.300.0090.01816.41
7.2.290.0030.01316.51
7.2.60.0070.00716.85
7.2.00.0060.00619.40
7.1.200.0190.00615.14
7.1.100.0700.00814.47
7.1.70.0000.00917.16
7.1.60.0000.01417.14
7.1.50.0070.00716.80
7.1.40.0080.00416.30
7.1.30.0050.01016.55
7.1.20.0120.00616.66
7.1.10.0000.01316.48
7.1.00.0040.00716.57
7.0.200.0030.00716.75
7.0.190.0100.00016.51
7.0.180.0040.00915.98
7.0.170.0050.00916.19
7.0.160.0100.00516.16
7.0.150.0000.01015.94
7.0.140.0030.00816.12
7.0.130.0030.00716.33
7.0.120.0060.01216.49
7.0.110.0040.00916.48
7.0.100.0000.00816.27
7.0.90.0030.00516.13
7.0.80.0000.01816.30
7.0.70.0050.00316.22
7.0.60.0030.00615.95
7.0.50.0030.00716.14
7.0.40.0070.00314.97
7.0.30.0030.00714.97
7.0.20.0040.00414.97
7.0.10.0040.01114.97
7.0.00.0000.01114.97
5.6.300.0310.04720.79
5.6.290.0130.04520.80
5.6.280.0070.05720.86
5.6.270.0100.04620.86
5.6.260.0030.05521.06
5.6.250.0100.03320.82
5.6.240.0100.03520.82
5.6.230.0030.05520.92
5.6.220.0030.04120.92
5.6.210.0000.04421.06
5.6.200.0070.04620.90
5.6.190.0000.05820.91
5.6.180.0070.04421.00
5.6.170.0040.03920.81
5.6.160.0000.05520.85
5.6.150.0030.05020.77
5.6.140.0090.03820.84
5.6.130.0130.04120.80
5.6.120.0030.05620.79
5.6.110.0030.04720.84
5.6.100.0140.04820.80
5.6.90.0070.05420.88
5.6.80.0000.04820.32
5.6.70.0070.05320.10
5.6.60.0000.05220.22
5.6.50.0000.04320.34
5.6.40.0190.04520.05
5.6.30.0070.04120.18
5.6.20.0030.04620.19
5.6.10.0070.04520.13
5.6.00.0030.04620.18

preferences:
72.94 ms | 406 KiB | 5 Q