3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = (string) 1616477400.9510319232940673828125; var_dump( json_encode($value), DateTimeImmutable::createFromFormat( 'U.u', json_encode($value) ), DateTimeImmutable::createFromFormat( 'U.u', number_format($value, 6, '.', '') ), );

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.3.60.0140.00718.68
8.3.50.0140.00716.61
8.3.40.0070.00719.15
8.3.30.0040.01119.09
8.3.20.0070.00024.18
8.3.10.0050.00324.66
8.3.00.0110.00426.16
8.2.180.0100.01025.92
8.2.170.0140.00719.20
8.2.160.0070.01022.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0060.00326.16
8.2.120.0030.00519.96
8.2.110.0090.00022.36
8.2.100.0040.00818.09
8.2.90.0000.00819.42
8.2.80.0000.00818.13
8.2.70.0030.00618.13
8.2.60.0000.00818.18
8.2.50.0000.01218.07
8.2.40.0060.00318.47
8.2.30.0080.00018.23
8.2.20.0000.00718.18
8.2.10.0040.00419.41
8.2.00.0090.00019.39
8.1.280.0030.01225.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0000.01022.72
8.1.230.0100.00018.08
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0080.00017.60
8.1.190.0000.00817.50
8.1.180.0060.00318.10
8.1.170.0040.00418.80
8.1.160.0070.00019.02
8.1.150.0040.00419.05
8.1.140.0030.00619.13
8.1.130.0030.00320.25
8.1.120.0030.00517.69
8.1.110.0000.00917.69
8.1.100.0000.00717.70
8.1.90.0040.00417.78
8.1.80.0050.00317.77
8.1.70.0000.00717.71
8.1.60.0000.00817.82
8.1.50.0090.00017.77
8.1.40.0030.00617.77
8.1.30.0030.00717.99
8.1.20.0030.00517.85
8.1.10.0020.00617.84
8.1.00.0040.00417.80
8.0.300.0050.00318.77
8.0.290.0000.00817.13
8.0.280.0030.00318.57
8.0.270.0000.00718.41
8.0.260.0000.00618.71
8.0.250.0040.00417.28
8.0.240.0070.00017.24
8.0.230.0030.00317.36
8.0.220.0050.00317.38
8.0.210.0030.00317.35
8.0.200.0000.00917.36
8.0.190.0000.00717.45
8.0.180.0050.00217.32
8.0.170.0040.00417.37
8.0.160.0040.00417.17
8.0.150.0000.00717.32
8.0.140.0040.00417.25
8.0.130.0030.00313.70
8.0.120.0030.00617.30
8.0.110.0040.00417.36
8.0.100.0050.00217.29
8.0.90.0000.00717.48
8.0.80.0050.01017.11
8.0.70.0030.00517.48
8.0.60.0040.00417.19
8.0.50.0040.00417.21
8.0.30.0110.00917.21
8.0.20.0130.00717.27
8.0.10.0090.00817.37
8.0.00.0110.01017.35
7.4.330.0000.00815.55
7.4.320.0030.00316.81
7.4.300.0000.00616.74
7.4.290.0000.00716.55
7.4.280.0040.00416.86
7.4.270.0070.00016.95
7.4.260.0000.00613.45
7.4.250.0030.00516.69
7.4.240.0030.00416.77
7.4.230.0020.00516.89
7.4.220.0020.00516.73
7.4.210.0040.01216.69
7.4.200.0030.00316.77
7.4.160.0080.01016.76
7.4.150.0150.00716.71
7.4.140.0080.00716.61
7.4.130.0140.00816.50
7.4.120.0090.00916.59
7.4.110.0120.00716.50
7.4.100.0090.00916.69
7.4.90.0100.00916.66
7.4.80.0120.00716.62
7.4.70.0080.01016.59
7.4.60.0060.01116.54
7.4.50.0070.00916.50
7.4.40.0110.00616.46
7.4.30.0080.00716.65
7.4.20.0060.01016.58
7.4.10.0070.01016.60
7.4.00.0070.01016.70
7.3.330.0040.00416.53
7.3.320.0060.00013.38
7.3.310.0030.00316.62
7.3.300.0060.00016.63
7.3.290.0130.00416.47
7.3.270.0070.01016.46
7.3.260.0080.00816.46
7.3.250.0110.00916.52
7.3.240.0080.00816.50
7.3.230.0080.00816.49
7.3.220.0080.00916.48
7.3.210.0110.01116.48
7.3.200.0110.00816.49
7.3.190.0140.00616.49
7.3.180.0130.00716.50
7.3.170.0110.00616.48
7.3.160.0110.00916.47
7.3.150.0080.00816.49
7.3.140.0080.00916.47
7.3.130.0060.01116.50
7.3.120.0100.00616.45
7.3.110.0070.01016.35
7.3.100.0080.01116.37
7.3.90.0080.00916.56
7.3.80.0080.01016.36
7.3.70.0060.01416.39
7.3.60.0100.00716.47
7.3.50.0090.01116.46
7.3.40.0060.01116.53
7.3.30.0110.00616.43
7.3.20.0100.00816.48
7.3.10.0130.00616.40
7.3.00.0080.01016.45

preferences:
55.28 ms | 400 KiB | 5 Q