3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'null == false? ', (null == false) ? 'yes' : 'no', "\n"; echo 'null == 0? ', (null == 0) ? 'yes' : 'no', "\n"; echo 'null == "0"? ', (null == "0") ? 'yes' : 'no', "\n"; echo 'null == $undefined? ', (null == $undefined) ? 'yes' : 'no', "\n"; echo 'null == ""? ', (null == "") ? 'yes' : 'no', "\n"; echo 'false == 0? ', (false == 0) ? 'yes' : 'no', "\n"; echo 'false == "0"?', (false == "0") ? 'yes' : 'no', "\n"; echo 'false == $undefined? ', (false == $undefined) ? 'yes' : 'no', "\n"; echo 'false == ""? ', (false == "") ? 'yes' : 'no', "\n"; echo '0 == "0"? ', (0 == "0") ? 'yes' : 'no', "\n"; echo '0 == $undefined? ', (0 == $undefined) ? 'yes' : 'no', "\n"; echo '0 == ""? ', (0 == "") ? 'yes' : 'no', "\n"; echo '"0" == $undefined? ', ("0" == $undefined) ? 'yes' : 'no', "\n"; echo '"0" == ""? ', ("0" == "") ? 'yes' : 'no', "\n"; echo '$undefined == ""? ', ($undefined == "") ? 'yes' : 'no', "\n";

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.70.0140.00716.88
8.3.60.0030.01516.75
8.3.50.0080.00917.36
8.3.40.0080.00818.75
8.3.30.0090.00918.78
8.3.20.0080.00018.60
8.3.10.0030.00620.33
8.3.00.0000.00819.38
8.2.180.0120.00616.63
8.2.170.0110.00422.96
8.2.160.0040.01421.10
8.2.150.0070.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00418.50
8.2.110.0030.00721.03
8.2.100.0100.00317.91
8.2.90.0000.01019.30
8.2.80.0040.00419.39
8.2.70.0080.00017.34
8.2.60.0000.00818.04
8.2.50.0090.00018.07
8.2.40.0040.00418.03
8.2.30.0070.00318.10
8.2.20.0030.00619.55
8.2.10.0080.00017.59
8.2.00.0000.00717.73
8.1.280.0070.00725.92
8.1.270.0000.00924.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.52
8.1.230.0090.00320.80
8.1.220.0000.00817.74
8.1.210.0040.00418.92
8.1.200.0030.00717.10
8.1.190.0040.00417.26
8.1.180.0050.00318.10
8.1.170.0040.00420.72
8.1.160.0040.00418.84
8.1.150.0000.00718.59
8.1.140.0020.00517.37
8.1.130.0000.00717.70
8.1.120.0000.00817.43
8.1.110.0000.00717.28
8.1.100.0070.00017.39
8.1.90.0070.00017.44
8.1.80.0040.00417.33
8.1.70.0000.00817.44
8.1.60.0040.00417.52
8.1.50.0030.00517.47
8.1.40.0040.00417.49
8.1.30.0050.00317.63
8.1.20.0060.00317.61
8.1.10.0040.00417.36
8.1.00.0040.00717.40
8.0.300.0090.00019.84
8.0.290.0000.00716.75
8.0.280.0000.00718.32
8.0.270.0040.00417.14
8.0.260.0060.00016.74
8.0.250.0000.00716.99
8.0.240.0070.00316.96
8.0.230.0000.00716.96
8.0.220.0040.00416.95
8.0.210.0030.00316.77
8.0.200.0060.00016.94
8.0.190.0040.00416.90
8.0.180.0030.00516.87
8.0.170.0080.00016.77
8.0.160.0000.00716.84
8.0.150.0040.00416.74
8.0.140.0050.00316.79
8.0.130.0000.00513.38
8.0.120.0000.00816.74
8.0.110.0030.00516.80
8.0.100.0040.00416.88
8.0.90.0040.00416.71
8.0.80.0070.01016.86
8.0.70.0040.00416.89
8.0.60.0030.00616.89
8.0.50.0000.00716.93
8.0.30.0060.01317.07
8.0.20.0080.01417.08
8.0.10.0070.00017.06
8.0.00.0110.00916.74
7.4.330.0000.00512.96
7.4.320.0030.00316.36
7.4.300.0030.00316.40
7.4.290.0000.00716.47
7.4.280.0000.00816.56
7.4.270.0070.00016.45
7.4.260.0000.00513.25
7.4.250.0030.00616.55
7.4.240.0050.00216.46
7.4.230.0000.00816.45
7.4.220.0080.01216.34
7.4.210.0090.00516.53
7.4.200.0000.00716.50
7.4.190.0000.00916.60
7.4.160.0060.00916.51
7.4.150.0090.00916.61
7.4.140.0050.01316.54
7.4.130.0080.00916.50
7.4.120.0100.01016.36
7.4.110.0090.00916.44
7.4.100.0100.00616.38
7.4.90.0130.00716.39
7.4.80.0120.00619.39
7.4.70.0060.01016.71
7.4.60.0070.01016.80
7.4.50.0070.00716.37
7.4.40.0070.01116.40
7.4.30.0130.01016.50
7.4.00.0060.00915.17
7.3.330.0000.00613.08
7.3.320.0040.00413.17
7.3.310.0000.00716.32
7.3.300.0000.00716.24
7.3.290.0030.01016.30
7.3.280.0050.01316.38
7.3.270.0170.00016.58
7.3.260.0030.01416.43
7.3.250.0130.00516.55
7.3.240.0000.01616.52
7.3.230.0110.00716.55
7.3.210.0160.00716.52
7.3.200.0100.00716.46
7.3.190.0160.00316.46
7.3.180.0130.00316.64
7.3.170.0120.00916.34
7.3.160.0150.00316.63
7.3.120.0030.01014.90
7.2.330.0180.00416.34
7.2.320.0080.01216.39
7.2.310.0130.00616.70
7.2.300.0110.00616.73
7.2.290.0140.00316.41
7.2.60.0300.01516.32
7.2.00.0040.00919.38
7.1.200.0030.00615.67
7.1.100.0040.01217.77
7.1.70.0000.00816.90
7.1.60.0140.01019.40
7.1.50.0110.01116.57
7.1.00.0030.07722.33
7.0.200.0040.00716.76
7.0.140.0030.07322.08
7.0.120.0030.07722.05
7.0.60.0270.04719.98
7.0.50.0100.08717.90
7.0.40.0100.05017.79
7.0.30.0100.08017.72
7.0.20.0070.07317.79
7.0.10.0100.07717.68
7.0.00.0070.05317.68
5.6.280.0100.06721.10
5.6.210.0100.07320.50
5.6.200.0170.06718.13
5.6.190.0100.07018.13
5.6.180.0130.06718.12
5.6.170.0100.06318.12
5.6.160.0070.06718.06
5.6.150.0070.06318.15
5.6.140.0030.07318.15
5.6.130.0130.07018.14
5.6.120.0070.07018.16
5.6.110.0030.07018.18
5.6.100.0070.08318.10
5.6.90.0100.07718.10
5.6.80.0100.03717.51
5.6.70.0030.05017.54
5.6.60.0130.04017.59
5.6.50.0070.07017.50
5.6.40.0030.08317.51
5.6.30.0170.06317.58
5.6.20.0100.08017.45
5.6.10.0070.05017.47
5.6.00.0170.06717.56
5.5.350.0330.07020.47
5.5.340.0130.04318.04
5.5.330.0170.07017.98
5.5.320.0070.04718.01
5.5.310.0070.07318.00
5.5.300.0070.08317.93
5.5.290.0030.08717.95
5.5.280.0130.07717.95
5.5.270.0000.08317.99
5.5.260.0070.08017.94
5.5.250.0100.06317.82
5.5.240.0130.07317.26
5.5.230.0030.08017.29
5.5.220.0070.06317.29
5.5.210.0100.05317.35
5.5.200.0170.07017.38
5.5.190.0030.06017.27
5.5.180.0070.06317.36
5.5.160.0070.05717.29
5.5.150.0000.05017.36
5.5.140.0070.08017.23
5.5.130.0070.05017.30
5.5.120.0070.06017.37
5.5.110.0030.08717.22
5.5.100.0130.07017.27
5.5.90.0100.07717.20
5.5.80.0100.04717.20
5.5.70.0030.06317.26
5.5.60.0070.04717.22
5.5.50.0070.07717.17
5.5.40.0030.03717.17
5.5.30.0100.05017.12
5.5.20.0000.07017.16
5.5.10.0070.07717.22
5.5.00.0000.04717.23
5.4.450.0000.07019.36
5.4.440.0000.04719.21
5.4.430.0100.08019.14
5.4.420.0070.07019.33
5.4.410.0070.04719.24
5.4.400.0030.05318.82
5.4.390.0130.06719.20
5.4.380.0000.08019.05
5.4.370.0030.08018.98
5.4.360.0070.07718.82
5.4.350.0100.07319.03
5.4.340.0100.06318.95
5.4.320.0070.07718.97
5.4.310.0030.07318.84
5.4.300.0030.05018.81
5.4.290.0030.04019.20
5.4.280.0100.04719.09
5.4.270.0070.06719.03
5.4.260.0070.06019.07
5.4.250.0100.07018.94
5.4.240.0030.06018.95
5.4.230.0070.08019.08
5.4.220.0070.04718.94
5.4.210.0100.06019.00
5.4.200.0030.05018.97
5.4.190.0030.07719.11
5.4.180.0030.05018.97
5.4.170.0070.07318.97
5.4.160.0030.08319.18
5.4.150.0100.07318.96
5.4.140.0100.04316.24
5.4.130.0000.04016.25
5.4.120.0130.05716.17
5.4.110.0170.06016.44
5.4.100.0030.06316.36
5.4.90.0100.05016.28
5.4.80.0000.04016.24
5.4.70.0070.06016.34
5.4.60.0030.04716.21
5.4.50.0030.07316.25
5.4.40.0100.04016.35
5.4.30.0070.03316.24
5.4.20.0130.05716.24
5.4.10.0000.05716.33
5.4.00.0000.04715.61
5.3.290.0070.06714.64
5.3.280.0070.04314.56
5.3.270.0030.08014.57
5.3.260.0070.07714.55
5.3.250.0100.07014.54
5.3.240.0030.04714.45
5.3.230.0070.05014.53
5.3.220.0100.04714.54
5.3.210.0000.08014.54
5.3.200.0200.06314.52
5.3.190.0030.05714.41
5.3.180.0070.04014.55
5.3.170.0070.03714.40
5.3.160.0100.07014.66
5.3.150.0030.07714.44
5.3.140.0000.06714.40
5.3.130.0070.06014.42
5.3.120.0030.08314.55
5.3.110.0070.05714.50
5.3.100.0070.03314.02
5.3.90.0030.07013.89
5.3.80.0170.05713.80
5.3.70.0070.07313.90
5.3.60.0070.07713.95
5.3.50.0070.06313.95
5.3.40.0130.06013.89
5.3.30.0030.04313.85
5.3.20.0070.05313.66
5.3.10.0070.07313.62
5.3.00.0030.06013.62
5.2.170.0000.06011.15
5.2.160.0070.06010.98
5.2.150.0030.05711.08
5.2.140.0030.06310.98
5.2.130.0070.03711.15
5.2.120.0070.05710.95
5.2.110.0030.05711.12
5.2.100.0000.05011.06
5.2.90.0030.02710.95
5.2.80.0070.06011.02
5.2.70.0070.06011.07
5.2.60.0000.05010.96
5.2.50.0100.05711.03
5.2.40.0100.05310.93
5.2.30.0070.05710.95
5.2.20.0030.04011.00
5.2.10.0000.06010.80
5.2.00.0030.04710.65
5.1.60.0030.05310.07
5.1.50.0030.05310.07
5.1.40.0030.02710.07
5.1.30.0070.05010.37
5.1.20.0030.06010.32
5.1.10.0100.05010.23
5.1.00.0030.05710.07
5.0.50.0030.04010.07
5.0.40.0130.03010.07
5.0.30.0000.04710.07
5.0.20.0030.04310.07
5.0.10.0070.03710.07
5.0.00.0000.07010.07
4.4.90.0030.03310.07
4.4.80.0100.03010.07
4.4.70.0000.02310.07
4.4.60.0000.02710.07
4.4.50.0030.03710.07
4.4.40.0000.05310.07
4.4.30.0070.02310.07
4.4.20.0070.03010.07
4.4.10.0030.02710.07
4.4.00.0000.05310.07
4.3.110.0030.02710.07
4.3.100.0000.01710.07
4.3.90.0000.03310.07
4.3.80.0000.04010.07
4.3.70.0030.03710.07
4.3.60.0070.03310.07
4.3.50.0070.02710.07
4.3.40.0000.04010.07
4.3.30.0070.01710.07
4.3.20.0000.02010.07
4.3.10.0030.03310.07
4.3.00.0000.01710.07

preferences:
44.98 ms | 401 KiB | 5 Q