3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Int to bool: \n"; var_dump(10 == true); // TRUE: Here we have an integer compared to a boolean true echo "\nInt to bool strictly: \n"; var_dump(10 === true); // FALSE: Here we have an integer STRICTLY compared to a boolean true echo "\n\nInt to int striclty: \n"; var_dump(10 === 10); // TRUE: Strict comparison of same 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.4.140.0150.00617.56
8.4.130.0070.00517.95
8.4.120.0130.00620.70
8.4.110.0130.00722.38
8.4.100.0120.00817.46
8.4.90.0160.00517.41
8.4.80.0050.00417.50
8.4.70.0080.00117.44
8.4.60.0110.01018.73
8.4.50.0070.00917.84
8.4.40.0070.01024.05
8.4.30.0060.00317.51
8.4.20.0040.00417.45
8.4.10.0130.00619.34
8.3.270.0150.00416.60
8.3.260.0110.00816.50
8.3.250.0100.00818.52
8.3.240.0130.00616.59
8.3.230.0070.00916.47
8.3.220.0090.00917.36
8.3.210.0070.00816.55
8.3.200.0060.00316.36
8.3.190.0080.01118.52
8.3.180.0130.00816.61
8.3.170.0100.01016.35
8.3.160.0060.01216.49
8.3.150.0120.00616.82
8.3.140.0040.00416.89
8.3.130.0060.00318.36
8.3.120.0090.00618.67
8.3.110.0100.00716.53
8.3.100.0100.01024.06
8.3.90.0110.00726.77
8.3.80.0000.00916.55
8.3.70.0090.00616.58
8.3.60.0110.00416.63
8.3.50.0110.00717.26
8.3.40.0070.01418.74
8.3.30.0150.00018.51
8.3.20.0040.00720.48
8.3.10.0040.00421.90
8.3.00.0050.00319.25
8.2.290.0100.00620.49
8.2.280.0120.00818.21
8.2.270.0140.00416.46
8.2.260.0070.01018.51
8.2.250.0090.00018.56
8.2.240.0040.00418.79
8.2.230.0080.00020.94
8.2.220.0110.00437.54
8.2.210.0030.01426.77
8.2.200.0040.00416.38
8.2.190.0030.01216.58
8.2.180.0120.00325.92
8.2.170.0120.00318.87
8.2.160.0000.01422.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0030.00621.07
8.2.120.0000.00726.35
8.2.110.0060.00321.97
8.2.100.0090.00317.59
8.2.90.0040.00417.63
8.2.80.0040.00418.83
8.2.70.0040.00417.50
8.2.60.0080.00017.63
8.2.50.0000.00817.63
8.2.40.0030.00619.35
8.2.30.0000.00719.00
8.2.20.0070.00017.99
8.2.10.0000.00717.91
8.2.00.0040.00417.92
8.1.330.0130.00521.82
8.1.320.0140.00615.85
8.1.310.0070.00316.39
8.1.300.0090.00019.48
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0100.00723.96
8.1.230.0100.00018.97
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00816.99
8.1.190.0070.00017.10
8.1.180.0070.00018.10
8.1.170.0040.00417.62
8.1.160.0040.00419.01
8.1.150.0000.00720.50
8.1.140.0000.00719.36
8.1.130.0070.00018.86
8.1.120.0030.00317.29
8.1.110.0000.01017.30
8.1.100.0000.00717.36
8.1.90.0030.00517.22
8.1.80.0030.00317.31
8.1.70.0000.00817.21
8.1.60.0000.00917.30
8.1.50.0040.00417.28
8.1.40.0050.00217.35
8.1.30.0040.00417.53
8.1.20.0000.00717.43
8.1.10.0000.00817.48
8.1.00.0040.00417.27
8.0.300.0000.00818.77
8.0.290.0030.00516.58
8.0.280.0070.00018.37
8.0.270.0030.00317.19
8.0.260.0040.00416.69
8.0.250.0030.00316.86
8.0.240.0040.00416.71
8.0.230.0030.00316.70
8.0.220.0000.00716.66
8.0.210.0070.00016.74
8.0.200.0000.00616.77
8.0.190.0050.00316.77
8.0.180.0000.00716.71
8.0.170.0050.00216.82
8.0.160.0030.00416.82
8.0.150.0000.00716.61
8.0.140.0040.00416.61
8.0.130.0030.00313.13
8.0.120.0070.00016.73
8.0.110.0040.00416.65
8.0.100.0000.00816.55
8.0.90.0040.00416.68
8.0.80.0100.00716.75
8.0.70.0080.00016.64
8.0.60.0030.00516.68
8.0.50.0000.00716.59
8.0.30.0130.00717.04
8.0.20.0100.00817.40
8.0.10.0000.00716.69
8.0.00.0060.01216.60
7.4.330.0020.00215.55
7.4.320.0030.00316.47
7.4.300.0040.00416.29
7.4.290.0030.00316.38
7.4.280.0030.00616.45
7.4.270.0000.00716.45
7.4.260.0000.00716.35
7.4.250.0040.00416.32
7.4.240.0070.00016.46
7.4.230.0000.00716.25
7.4.220.0120.00816.46
7.4.210.0060.00816.43
7.4.200.0050.00216.47
7.4.160.0110.00816.60
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0070.01116.39
7.4.120.0120.00916.30
7.4.110.0030.01316.35
7.4.100.0030.01516.39
7.4.90.0090.00916.44
7.4.80.0120.01119.39
7.4.70.0060.01016.46
7.4.60.0070.01016.33
7.4.50.0030.01316.18
7.4.40.0040.01316.44
7.4.30.0110.01116.39
7.4.10.0030.01716.12
7.4.00.0080.01015.62
7.3.330.0000.00612.96
7.3.320.0050.00013.03
7.3.310.0030.00316.02
7.3.300.0030.00316.13
7.3.290.0000.00616.08
7.3.280.0100.00816.12
7.3.270.0100.00617.40
7.3.260.0100.00716.41
7.3.250.0090.01116.29
7.3.240.0090.01016.20
7.3.230.0110.00716.07
7.3.210.0110.00716.41
7.3.200.0140.00716.53
7.3.190.0000.02116.22
7.3.180.0100.00716.42
7.3.170.0090.00616.18
7.3.160.0120.00916.17
7.3.130.0090.00916.14
7.3.120.0160.00016.41
7.3.110.0100.00716.01
7.3.100.0000.01816.23
7.3.90.0100.00716.23
7.3.80.0060.00316.09
7.3.70.0040.00716.14
7.3.60.0090.00616.22
7.3.50.0060.00916.22
7.3.40.0060.00916.18
7.3.30.0070.00816.24
7.3.20.0030.01318.02
7.3.10.0060.00816.93
7.3.00.0060.00617.01
7.2.330.0060.01516.60
7.2.320.0080.00916.25
7.2.310.0130.00316.56
7.2.300.0030.01616.30
7.2.290.0060.01016.60
7.2.260.0060.01616.05
7.2.250.0140.00316.23
7.2.240.0070.01116.17
7.2.230.0000.01216.55
7.2.220.0070.01016.52
7.2.210.0040.01116.45
7.2.200.0060.00916.44
7.2.190.0030.01216.28
7.2.180.0000.01316.24
7.2.170.0150.00416.30
7.2.160.0070.01016.31
7.2.150.0040.01118.36
7.2.140.0070.01017.96
7.2.130.0050.00617.25
7.2.120.0080.00917.15
7.2.110.0030.01117.30
7.2.100.0080.00417.31
7.2.90.0030.00817.24
7.2.80.0050.00617.26
7.2.70.0050.00717.15
7.2.60.0030.00917.13
7.2.50.0050.01017.33
7.2.40.0070.00917.24
7.2.30.0090.00517.29
7.2.20.0050.00817.09
7.2.10.0050.00817.21
7.2.00.0030.01217.57
7.1.330.0040.01117.13
7.1.320.0070.01017.22
7.1.310.0030.01317.08
7.1.300.0030.01317.25
7.1.290.0040.01117.23
7.1.280.0040.01117.22
7.1.270.0030.01017.27
7.1.260.0110.00417.33
7.1.250.0050.00716.15
7.1.240.0030.01217.20
7.1.230.0100.01017.09
7.1.220.0060.00317.21
7.1.210.0030.01217.21
7.1.200.0050.01016.34
7.1.190.0030.00917.20
7.1.180.0080.00617.17
7.1.170.0000.01317.27
7.1.160.0000.01517.23
7.1.150.0060.00816.95
7.1.140.0030.01017.21
7.1.130.0090.00617.15
7.1.120.0070.01117.25
7.1.110.0130.00017.33
7.1.100.0050.00817.70
7.1.90.0030.00917.06
7.1.80.0110.00417.30
7.1.70.0110.00817.06
7.1.60.0210.00825.91
7.1.50.0100.00925.81
7.1.40.0130.00825.76
7.1.30.0150.00825.67
7.1.20.0140.00725.78
7.1.10.0140.00716.94
7.1.00.0010.01116.74
7.0.330.0100.00716.87
7.0.320.0050.01116.71
7.0.310.0090.00616.76
7.0.300.0120.00316.93
7.0.290.0030.00916.71
7.0.280.0060.00616.79
7.0.270.0080.00816.92
7.0.260.0060.01017.04
7.0.250.0040.00716.89
7.0.240.0030.00917.09
7.0.230.0060.00616.75
7.0.220.0030.01217.04
7.0.210.0060.00617.08
7.0.200.0040.00916.56
7.0.190.0070.00616.78
7.0.180.0100.00316.60
7.0.170.0070.00916.36
7.0.160.0060.00816.45
7.0.150.0110.00216.41
7.0.140.0070.00716.42
7.0.130.0070.00716.61
7.0.120.0030.01016.64
7.0.110.0050.00616.55
7.0.100.0050.00916.53
7.0.90.0080.00616.63
7.0.80.0070.00716.55
7.0.70.0040.01016.61
7.0.60.0060.00616.49
7.0.50.0040.01116.48
7.0.40.0020.01215.50
7.0.30.0090.01215.56
7.0.20.0030.01215.54
7.0.10.0090.00515.48
7.0.00.0050.00915.48
5.6.400.0000.01015.87
5.6.390.0070.01015.57
5.6.380.0040.01115.90
5.6.370.0100.00315.85
5.6.360.0150.00315.80
5.6.350.0070.01115.81
5.6.340.0060.00615.90
5.6.330.0000.01715.84
5.6.320.0030.00715.95
5.6.310.0070.00715.95
5.6.300.0100.00315.76
5.6.290.0070.01116.04
5.6.280.0120.00315.70
5.6.270.0030.00615.93
5.6.260.0030.01015.75
5.6.250.0060.00616.01
5.6.240.0100.00716.00
5.6.230.0100.00615.92
5.6.220.0060.00915.74
5.6.210.0070.01115.73
5.6.200.0100.00715.80
5.6.190.0080.00615.80
5.6.180.0070.00715.81
5.6.170.0000.01015.49
5.6.160.0090.00916.03
5.6.150.0070.01416.12
5.6.140.0070.01315.77
5.6.130.0150.00315.96
5.6.120.0110.00815.99
5.6.110.0090.00415.93
5.6.100.0040.00716.10
5.6.90.0080.00815.81
5.6.80.0100.00715.68
5.6.70.0030.00715.73
5.6.60.0070.00815.64
5.6.50.0070.00715.61
5.6.40.0100.00715.65
5.6.30.0100.00615.52
5.6.20.0060.01015.98
5.6.10.0030.01015.43
5.6.00.0030.01015.73

preferences:
32.76 ms | 403 KiB | 5 Q