3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); 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 == $foo ? ', (null == $foo) ? '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 == $foo ? ', (false == $undefined) ? 'yes' : 'no', "\n"; echo 'false == "" ? ', (false == "") ? 'yes' : 'no', "\n"; echo '0 == "0" ? ', (0 == "0") ? 'yes' : 'no', "\n"; echo '0 == $foo ? ', (0 == $undefined) ? 'yes' : 'no', "\n"; echo '0 == "" ? ', (0 == "") ? 'yes' : 'no', "\n"; echo '"0" == $foo ? ', ("0" == $undefined) ? 'yes' : 'no', "\n"; echo '"0" == "" ? ', ("0" == "") ? 'yes' : 'no', "\n"; echo '$foo == "" ? ', ($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.60.0120.00616.48
8.3.50.0120.00617.33
8.3.40.0090.00618.63
8.3.30.0110.00418.85
8.3.20.0080.00018.65
8.3.10.0000.00918.52
8.3.00.0040.00419.26
8.2.180.0100.00716.63
8.2.170.0120.00322.96
8.2.160.0100.01018.87
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00919.14
8.2.110.0090.00020.53
8.2.100.0060.00617.78
8.2.90.0000.00817.63
8.2.80.0030.00518.82
8.2.70.0090.00317.63
8.2.60.0000.00817.50
8.2.50.0080.00017.80
8.2.40.0000.00819.35
8.2.30.0030.00617.69
8.2.20.0070.00317.51
8.2.10.0030.00517.75
8.2.00.0000.00717.62
8.1.280.0140.00725.92
8.1.270.0030.00523.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00619.14
8.1.230.0120.00022.71
8.1.220.0040.00418.39
8.1.210.0030.00618.77
8.1.200.0080.00017.22
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00017.62
8.1.160.0040.00418.88
8.1.150.0040.00418.51
8.1.140.0080.00017.45
8.1.130.0070.00017.52
8.1.120.0050.00217.31
8.1.110.0000.00817.35
8.1.100.0000.00817.32
8.1.90.0000.00717.37
8.1.80.0000.00717.38
8.1.70.0030.00317.37
8.1.60.0040.00417.44
8.1.50.0040.00417.44
8.1.40.0040.00417.55
8.1.30.0040.00417.56
8.1.20.0000.00917.50
8.1.10.0050.00217.44
8.1.00.0000.01117.39
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0000.00818.62
8.0.270.0030.00317.27
8.0.260.0030.00316.73
8.0.250.0040.00417.00
8.0.240.0080.00016.98
8.0.230.0030.00316.88
8.0.220.0030.00316.78
8.0.210.0000.00716.94
8.0.200.0030.00316.96
8.0.190.0070.00016.85
8.0.180.0070.00016.85
8.0.170.0040.00416.74
8.0.160.0000.00816.80
8.0.150.0000.00816.91
8.0.140.0040.00816.80
8.0.130.0030.00313.34
8.0.120.0000.00816.83
8.0.110.0000.00716.80
8.0.100.0080.00016.79
8.0.90.0040.00416.97
8.0.80.0070.00716.95
8.0.70.0050.00316.95
8.0.60.0030.00616.71
8.0.50.0060.00316.74
8.0.30.0200.01616.92
8.0.20.0120.00717.15
8.0.10.0000.00716.89
8.0.00.0110.01116.87
7.4.330.0000.00512.96
7.4.320.0060.00016.57
7.4.300.0040.00416.53
7.4.290.0000.00716.36
7.4.280.0040.00416.37
7.4.270.0070.00016.57
7.4.260.0060.00013.27
7.4.250.0040.00416.54
7.4.240.0030.00316.47
7.4.230.0080.00316.48
7.4.220.0060.01216.36
7.4.210.0090.00916.49
7.4.200.0040.00416.25
7.4.190.0060.00316.53
7.4.160.0120.00316.36
7.4.150.0060.01116.40
7.4.140.0140.00416.46
7.4.130.0080.01116.42
7.4.120.0040.01216.59
7.4.110.0090.01316.44
7.4.100.0060.01616.43
7.4.90.0120.00616.61
7.4.80.0130.01019.39
7.4.70.0110.00716.46
7.4.60.0100.00716.36
7.4.50.0030.00316.50
7.4.40.0000.01716.38
7.4.30.0030.01316.52
7.4.00.0130.00315.20
7.3.330.0000.00613.14
7.3.320.0030.00313.20
7.3.310.0040.00416.43
7.3.300.0000.00616.24
7.3.290.0100.00916.37
7.3.280.0060.01416.35
7.3.270.0130.00716.54
7.3.260.0130.01016.57
7.3.250.0090.01216.45
7.3.240.0140.00416.42
7.3.230.0140.00516.62
7.3.210.0070.01316.61
7.3.200.0130.00716.60
7.3.190.0040.01216.37
7.3.180.0120.00416.51
7.3.170.0100.01016.40
7.3.160.0120.00616.40
7.3.120.0040.00814.96
7.2.330.0070.01016.39
7.2.320.0110.00516.34
7.2.310.0150.00616.68
7.2.300.0130.00316.45
7.2.290.0100.01216.69
7.2.00.0100.00619.21
7.1.100.0050.00518.23
7.1.70.0000.00917.19
7.1.60.0060.01319.30
7.1.50.0160.01634.81
7.1.00.0030.07722.28
7.0.200.0070.00316.46
7.0.140.0100.07022.00
7.0.120.0030.06022.11
7.0.60.0170.07019.95
7.0.50.0100.03317.86
7.0.40.0100.03720.23
7.0.30.0270.05020.13
7.0.20.0370.07720.19
7.0.10.0100.08320.04
7.0.00.0070.07020.29
5.6.280.0000.07721.09
5.6.210.0070.08320.72
5.6.200.0070.08018.21
5.6.190.0030.04320.45
5.6.180.0500.06720.77
5.6.170.0100.05020.45
5.6.160.0100.08320.51
5.6.150.0100.04718.08
5.6.140.0030.06318.17
5.6.130.0070.05718.11
5.6.120.0030.05320.87
5.6.110.0030.06321.02
5.6.100.0070.04021.00
5.6.90.0100.07721.07
5.6.80.0100.07720.54
5.5.350.0070.08020.36
5.5.340.0100.07717.84
5.5.330.0070.05720.19
5.5.320.2430.05020.20
5.5.310.0270.04720.29
5.5.300.0030.06717.95
5.5.290.0070.08717.98
5.5.280.0000.04320.88
5.5.270.0070.04020.86
5.5.260.0070.08320.73
5.5.250.0130.08320.67
5.5.240.0000.08320.20
5.4.450.0400.04019.12
5.4.440.0130.03719.22
5.4.430.0500.04019.39
5.4.420.0900.04319.48
5.4.410.0500.03719.12
5.4.400.0230.04719.13
5.4.390.0470.03319.09
5.4.380.0430.04319.00
5.4.370.0700.03718.93
5.4.360.0730.04319.09
5.4.350.0470.04319.21
5.4.340.0730.03018.88
5.4.320.0800.03018.90
5.4.310.0370.04019.06
5.4.300.0330.04019.06
5.4.290.0330.04019.05
5.4.280.0700.03719.08
5.4.270.0370.04318.89
5.4.260.0630.04019.21
5.4.250.0430.04019.20
5.4.240.0930.03019.05
5.4.230.0330.04019.05
5.4.220.0370.04719.05
5.4.210.0270.04019.24
5.4.200.0670.03719.05
5.4.190.0730.04019.05
5.4.180.0770.02718.91
5.4.170.0700.03718.92
5.4.160.0430.03319.13
5.4.150.0600.03719.19
5.4.140.0800.03016.44
5.4.130.0300.04016.38
5.4.120.0730.03016.43
5.4.110.0500.04316.22
5.4.100.0600.02716.47
5.4.90.0530.04016.37
5.4.80.0570.03716.42
5.4.70.0500.03316.36
5.4.60.0730.03016.25
5.4.50.0900.02716.34
5.4.40.0330.03016.25
5.4.30.0630.03016.25
5.4.20.0670.04316.35
5.4.10.0430.05316.34
5.4.00.0430.03315.82
5.3.290.0330.04315.63
5.3.280.0600.04315.51
5.3.270.0670.04715.51
5.3.260.0500.04715.51
5.3.250.0900.03015.51
5.3.240.0500.04315.51
5.3.230.0630.03315.51
5.3.220.0330.03715.51
5.3.210.0400.04015.51
5.3.200.0670.03315.51
5.3.190.0270.04315.51
5.3.180.0630.03715.51
5.3.170.0370.03015.51
5.3.160.0630.04015.51
5.3.150.0030.03015.51
5.3.140.0330.03715.51
5.3.130.0470.04715.51
5.3.120.0330.04315.51
5.3.110.0230.05315.51
5.3.100.0600.04015.51
5.3.90.0300.04315.51
5.3.80.0670.03715.51
5.3.70.0670.03015.51
5.3.60.0170.04015.51
5.3.50.0400.03715.51
5.3.40.0900.04015.50
5.3.30.0600.04315.47
5.3.20.0700.04015.28
5.3.10.0700.03015.28
5.3.00.0570.03015.28
5.2.170.0370.03715.51
5.2.160.0430.03315.51
5.2.150.0400.05315.50
5.2.140.0300.03715.28
5.2.130.0530.03015.28
5.2.120.0670.05015.28
5.2.110.0400.02715.28
5.2.100.0530.03315.28
5.2.90.0670.03015.28
5.2.80.0200.03015.28
5.2.70.0500.03715.28
5.2.60.0430.03015.28
5.2.50.0300.02315.28
5.2.40.0570.02315.28
5.2.30.0400.03015.28
5.2.20.0470.03315.28
5.2.10.0400.03015.28
5.2.00.0470.02715.28
5.1.60.0400.02715.28
5.1.50.0170.03015.28
5.1.40.0370.02015.28
5.1.30.0330.02315.28
5.1.20.0800.02715.28
5.1.10.0370.02015.28
5.1.00.0230.03015.28
5.0.50.0100.02315.28
5.0.40.0030.02315.28
5.0.30.0070.03315.28
5.0.20.0030.02315.28
5.0.10.0170.01715.28
5.0.00.0200.02715.28
4.4.90.0230.01315.28
4.4.80.0100.02015.28
4.4.70.0130.01315.28
4.4.60.0200.01315.28
4.4.50.0100.01315.28
4.4.40.0230.02715.28
4.4.30.0270.01015.28
4.4.20.0130.02015.28
4.4.10.0200.01715.28
4.4.00.0070.03715.28
4.3.110.0000.01715.28
4.3.100.0300.01315.28
4.3.90.0070.02015.28
4.3.80.0270.02015.28
4.3.70.0270.01715.28
4.3.60.0130.02315.28
4.3.50.0200.02715.28
4.3.40.0270.02715.28
4.3.30.0070.01315.28
4.3.20.0100.01715.28
4.3.10.0070.02015.28
4.3.00.0100.01315.28

preferences:
38.36 ms | 401 KiB | 5 Q