3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '100000000000000.00000000000000001'; $float = (float) $test; $string = (string) $float; var_dump($test); var_dump($float); var_dump($string);

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.30.0100.00719.66
8.5.20.0170.00619.59
8.5.10.0120.00619.99
8.5.00.0110.01121.39
8.4.180.0160.00719.51
8.4.170.0130.00824.02
8.4.160.0110.00922.06
8.4.150.0080.00616.78
8.4.140.0120.01417.57
8.4.130.0130.01117.32
8.4.120.0090.00717.43
8.4.110.0130.00718.70
8.4.100.0090.00717.38
8.4.90.0120.00720.57
8.4.80.0050.00318.75
8.4.70.0070.00218.71
8.4.60.0060.01018.61
8.4.50.0100.00920.65
8.4.40.0160.00324.00
8.4.30.0110.00718.49
8.4.20.0160.00319.79
8.4.10.0060.00323.68
8.3.300.0060.00320.74
8.3.290.0110.00820.79
8.3.280.0060.00616.07
8.3.270.0070.01216.38
8.3.260.0130.00716.49
8.3.250.0090.00916.36
8.3.240.0140.00418.19
8.3.230.0120.00816.42
8.3.220.0040.00318.81
8.3.210.0090.01018.20
8.3.200.0050.00316.37
8.3.190.0060.00417.29
8.3.180.0090.01018.85
8.3.170.0160.00316.66
8.3.160.0140.00417.22
8.3.150.0000.01819.01
8.3.140.0120.00420.74
8.3.130.0140.00418.44
8.3.120.0090.00318.91
8.3.110.0040.00420.94
8.3.100.0050.00516.44
8.3.90.0070.00026.77
8.3.80.0030.00616.63
8.3.70.0110.00416.58
8.3.60.0100.01016.63
8.3.50.0040.01119.91
8.3.40.0060.01120.27
8.3.30.0000.01518.46
8.3.20.0050.00224.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.300.0060.00420.36
8.2.290.0070.00116.53
8.2.280.0110.01018.40
8.2.270.0120.00618.38
8.2.260.0140.00416.55
8.2.250.0080.00018.22
8.2.240.0120.00316.91
8.2.230.0120.00622.58
8.2.220.0060.00324.06
8.2.210.0090.00526.77
8.2.200.0060.00318.16
8.2.190.0030.01416.75
8.2.180.0100.00725.92
8.2.170.0070.00718.73
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00819.36
8.2.110.0060.00319.02
8.2.100.0090.00317.84
8.2.90.0000.00821.02
8.2.80.0030.00618.61
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0040.00418.22
8.2.30.0000.00717.86
8.2.20.0040.00420.67
8.2.10.0000.00718.23
8.2.00.0040.00419.10
8.1.340.0130.00721.66
8.1.330.0130.00716.37
8.1.320.0090.00718.11
8.1.310.0080.00618.70
8.1.300.0000.00917.76
8.1.290.0030.00630.84
8.1.280.0140.00425.92
8.1.270.0070.00024.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00022.14
8.1.230.0080.00421.04
8.1.220.0040.00417.74
8.1.210.0030.00618.95
8.1.200.0060.00317.00
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0050.00318.46
8.1.160.0080.00018.71
8.1.150.0000.00718.44
8.1.140.0050.00217.36
8.1.130.0040.00417.37
8.1.120.0040.00417.39
8.1.110.0000.00717.45
8.1.100.0040.00317.44
8.1.90.0000.00717.40
8.1.80.0040.00417.35
8.1.70.0030.00617.48
8.1.60.0040.00417.66
8.1.50.0040.00417.52
8.1.40.0000.00717.52
8.1.30.0040.00417.55
8.1.20.0000.00817.64
8.1.10.0040.00417.40
8.1.00.0080.00017.34
8.0.300.0000.00720.21
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0000.00716.75
8.0.260.0000.00717.33
8.0.250.0030.00317.33
8.0.240.0040.00417.33
8.0.230.0050.00317.33
8.0.220.0070.00017.33
8.0.210.0050.00317.33
8.0.200.0000.00817.33
8.0.190.0040.00417.33
8.0.180.0000.00817.33
8.0.170.0040.00417.33
8.0.160.0000.00717.33
8.0.150.0030.00317.33
8.0.140.0040.00417.33
8.0.130.0000.00817.33
8.0.120.0000.00717.33
8.0.110.0000.00717.33
8.0.100.0040.00417.33
8.0.90.0000.00717.33
8.0.80.0100.00017.33
8.0.70.0060.00317.33
8.0.60.0000.00817.33
8.0.50.0030.00517.33
8.0.30.0050.00217.33
8.0.20.0060.00317.33
8.0.10.0030.00617.33

preferences:
62.29 ms | 1116 KiB | 5 Q