3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str="1e5"; $value = $str; var_dump([ "intval" => intval($value, 10), "(string)(int)"=> (string)(int) $value, '$value === (string)(int) $value' => ($value === (string)(int)$value) ]);

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.5.10.0130.00719.43
8.5.00.0100.01120.04
8.4.150.0030.00014.05
8.4.140.0120.01017.65
8.4.130.0060.00219.47
8.4.120.0130.00820.50
8.4.110.0160.00322.41
8.4.100.0110.00717.56
8.4.90.0110.00920.82
8.4.80.0070.00218.62
8.4.70.0120.00518.71
8.4.60.0140.00820.59
8.4.50.0050.00418.70
8.4.40.0130.00619.57
8.4.30.0030.01720.65
8.4.20.0040.00422.43
8.4.10.0090.00923.68
8.3.280.0110.00918.21
8.3.270.0090.01016.48
8.3.260.0040.00416.59
8.3.250.0090.00918.84
8.3.240.0110.00817.23
8.3.230.0060.00316.49
8.3.220.0040.00518.87
8.3.210.0100.00816.62
8.3.200.0040.00516.54
8.3.190.0050.00417.25
8.3.180.0100.00818.71
8.3.170.0030.01417.34
8.3.160.0120.00618.50
8.3.150.0110.00716.66
8.3.140.0080.00016.61
8.3.130.0000.00818.48
8.3.120.0130.00620.55
8.3.110.0090.00020.94
8.3.100.0060.00316.62
8.3.90.0040.00426.77
8.3.80.0060.00317.97
8.3.70.0070.01016.75
8.3.60.0090.00618.56
8.3.50.0080.00816.43
8.3.40.0040.01121.78
8.3.30.0070.01020.16
8.3.20.0000.00824.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.290.0100.00820.20
8.2.280.0080.01018.53
8.2.270.0110.00718.08
8.2.260.0000.00817.25
8.2.250.0040.00416.44
8.2.240.0080.00016.94
8.2.230.0040.00722.58
8.2.220.0040.00824.06
8.2.210.0040.00826.77
8.2.200.0060.00316.50
8.2.190.0090.00916.58
8.2.180.0120.00616.38
8.2.170.0100.01019.09
8.2.160.0130.00722.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00222.27
8.2.110.0000.00922.22
8.2.100.0000.01217.74
8.2.90.0030.00617.97
8.2.80.0040.00419.23
8.2.70.0150.00717.38
8.2.60.0160.00317.38
8.2.50.0180.00017.38
8.2.40.0120.00417.13
8.2.30.0100.00817.38
8.2.20.0140.00317.25
8.2.10.0100.00717.36
8.2.00.0080.00817.75
8.1.330.0130.00521.77
8.1.320.0120.00717.77
8.1.310.0030.00518.37
8.1.300.0150.00317.65
8.1.290.0000.00930.84
8.1.280.0040.01125.92
8.1.270.0080.00024.66
8.1.260.0060.00626.35
8.1.250.0070.00028.09
8.1.240.0070.01022.20
8.1.230.0110.00020.89
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0120.00417.13
8.1.190.0110.00517.25
8.1.180.0140.00316.96
8.1.170.0110.00517.25
8.1.160.0090.00617.22
8.1.150.0040.01217.25
8.1.140.0130.00416.86
8.1.130.0170.00017.13
8.1.120.0150.00416.96
8.1.110.0150.00217.13
8.1.100.0090.00717.36
8.1.90.0190.00017.13
8.1.80.0140.00517.13
8.1.70.0110.00717.13
8.1.60.0150.00217.50
8.1.50.0110.00617.50
8.1.40.0090.00917.36
8.1.30.0130.00817.36
8.1.20.0170.00017.25
8.1.10.0150.00317.23
8.1.00.0140.00417.13
8.0.300.0050.00320.08
8.0.290.0170.00016.58
8.0.280.0140.00416.58
8.0.270.0080.00816.58
8.0.260.0080.00816.58
8.0.250.0130.00316.61
8.0.240.0080.00816.58
8.0.230.0130.00316.63
8.0.220.0160.00016.58
8.0.210.0080.00816.61
8.0.200.0120.00616.63
8.0.190.0120.00416.58
8.0.180.0130.00316.58
8.0.170.0080.00816.58
8.0.160.0120.00416.75
8.0.150.0150.00316.58
8.0.140.0140.00516.58
8.0.130.0130.00416.63
8.0.120.0110.00616.58
8.0.110.0080.00816.58
8.0.100.0170.00016.58
8.0.90.0100.00616.58
8.0.80.0100.00716.75
8.0.70.0160.00016.58
8.0.60.0160.00016.61
8.0.50.0150.00016.58
8.0.30.0150.00516.58
8.0.20.0130.00316.58
8.0.10.0110.00516.88

preferences:
120.8 ms | 403 KiB | 5 Q