3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0.17; $b = 1 - 0.83; //0.17 var_dump( (string) $a === (string) $b); $a = 0.17; $b = 1 - 0.83; //0.17 var_dump('' . $a === '' . $b); $a = 0.17; $b = 1 - 0.83; //0.17 var_dump(strval($a) === strval($b));

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.130.0060.00318.47
8.3.120.0000.00920.58
8.3.110.0060.00320.94
8.3.100.0040.01124.06
8.3.90.0120.00326.77
8.3.80.0080.00017.97
8.3.70.0090.01218.40
8.3.60.0070.00718.18
8.3.50.0050.01224.39
8.3.40.0070.00718.46
8.3.30.0080.00818.57
8.3.20.0000.00821.74
8.3.10.0000.00820.29
8.3.00.0060.00323.53
8.2.250.0060.00318.17
8.2.240.0160.00317.04
8.2.230.0060.00322.58
8.2.220.0000.00837.54
8.2.210.0110.00826.77
8.2.200.0070.00316.50
8.2.190.0110.00416.63
8.2.180.0170.00318.29
8.2.170.0070.00718.80
8.2.160.0060.00922.96
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0050.00220.81
8.2.110.0090.00021.10
8.2.100.0060.00617.78
8.2.90.0080.00017.90
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.50
8.2.50.0040.00417.55
8.2.40.0040.00418.09
8.2.30.0000.00719.43
8.2.20.0040.00417.92
8.2.10.0030.00519.18
8.2.00.0050.00319.10
8.1.300.0160.00320.09
8.1.290.0030.00618.88
8.1.280.0110.00425.92
8.1.270.0050.00223.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00424.02
8.1.230.0060.00622.59
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0080.00017.12
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0000.00817.62
8.1.160.0080.00022.18
8.1.150.0050.00318.80
8.1.140.0050.00318.80
8.1.130.0020.00519.16
8.1.120.0000.01017.41
8.1.110.0040.00417.40
8.1.100.0070.00017.38
8.1.90.0080.00017.27
8.1.80.0040.00417.27
8.1.70.0070.00017.46
8.1.60.0000.00917.53
8.1.50.0030.00617.54
8.1.40.0040.00417.59
8.1.30.0050.00317.64
8.1.20.0040.00417.63
8.1.10.0000.00917.45
8.1.00.0060.00317.32
8.0.300.0030.00621.46
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0000.00817.98
8.0.260.0060.00016.68
8.0.250.0040.00216.93
8.0.240.0000.00716.94
8.0.230.0000.00716.91
8.0.220.0060.00016.87
8.0.210.0030.00316.92
8.0.200.0000.00616.91
8.0.190.0080.00016.91
8.0.180.0050.00316.77
8.0.170.0000.00816.94
8.0.160.0040.00416.84
8.0.150.0040.00416.89
8.0.140.0040.00416.86
8.0.130.0030.00313.31
8.0.120.0040.00416.75
8.0.110.0000.00816.99
8.0.100.0050.00316.93
8.0.90.0000.00916.72
8.0.80.0120.01016.82
8.0.70.0040.00416.81
8.0.60.0040.00416.70
8.0.50.0000.00816.81
8.0.30.0150.00417.21
8.0.20.0140.00517.05
8.0.10.0000.00716.93
8.0.00.0060.01216.96
7.4.330.0000.00515.55
7.4.320.0030.00316.50
7.4.300.0030.00316.54
7.4.290.0050.00816.49
7.4.280.0070.00016.48
7.4.270.0070.00016.35
7.4.260.0000.00513.27
7.4.250.0050.00316.46
7.4.240.0020.00516.56
7.4.230.0030.00316.59
7.4.220.0000.00716.64
7.4.210.0070.00816.47
7.4.200.0030.00316.60
7.4.130.0080.00916.51
7.4.120.0090.01316.39
7.4.110.0080.01216.55
7.4.100.0070.01016.47
7.4.90.0090.00916.45
7.4.80.0080.01017.96
7.4.70.0050.01116.40
7.4.60.0070.01116.57
7.4.50.0080.01016.36
7.4.40.0100.01016.52
7.4.30.0110.00816.57
7.4.20.0100.00816.50
7.4.10.0090.00816.30
7.4.00.0080.00916.42
7.3.330.0000.00716.32
7.3.320.0000.00513.16
7.3.310.0000.00716.13
7.3.300.0030.00316.23
7.3.290.0090.01116.21
7.3.260.0120.01216.39
7.3.240.0110.00616.42
7.3.230.0090.00716.21
7.3.220.0000.01616.08
7.3.210.0110.00616.34
7.3.200.0150.00116.18
7.3.190.0080.00816.36
7.3.180.0130.00616.39
7.3.170.0090.01116.42
7.3.160.0050.01216.25
7.3.150.0090.00916.37
7.3.140.0120.00616.22
7.3.130.0190.00616.33
7.3.120.0040.01216.30
7.3.110.0120.00616.36
7.3.100.0130.00616.21
7.3.90.0100.00716.22
7.3.80.0100.00716.28
7.3.70.0080.00916.34
7.3.60.0080.00916.30
7.3.50.0110.00816.30
7.3.40.0080.00916.27
7.3.30.0090.00916.13
7.3.20.0070.01316.16
7.3.10.0060.01116.32
7.3.00.0140.00616.25
7.2.340.0140.00316.72
7.2.330.0050.01216.61
7.2.320.0110.01116.56
7.2.310.0100.00716.45
7.2.300.0080.00916.45
7.2.290.0140.00316.32
7.2.280.0100.00716.50
7.2.270.0120.00716.43
7.2.260.0080.00916.71
7.2.250.0070.01116.68
7.2.240.0050.01416.50
7.2.230.0080.01116.71
7.2.220.0080.01116.58
7.2.210.0150.00516.52
7.2.200.0090.00816.48
7.2.190.0120.00616.48
7.2.180.0130.00516.59
7.2.170.0080.00916.39
7.2.160.0090.01216.44
7.2.150.0120.00916.35
7.2.140.0100.00916.49
7.2.130.0120.00716.58
7.2.120.0110.01016.58
7.2.110.0110.00716.55
7.2.100.0280.01016.48
7.2.90.0090.01216.65
7.2.80.0100.00916.49
7.2.70.0120.00716.65
7.2.60.0100.01016.34
7.2.50.0110.00816.54
7.2.40.0110.00816.43
7.2.30.0080.01216.52
7.2.20.0120.00916.48
7.2.10.0070.01216.52
7.2.00.0140.00716.48

preferences:
27.32 ms | 403 KiB | 5 Q