3v4l.org

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

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.0160.00318.34
8.3.50.0110.00722.11
8.3.40.0070.00718.67
8.3.30.0180.00419.00
8.3.20.0040.00420.34
8.3.10.0040.00423.66
8.3.00.0040.00422.34
8.2.180.0040.01516.63
8.2.170.0180.00322.96
8.2.160.0130.00622.13
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.48
8.2.110.0060.00322.19
8.2.100.0060.00617.72
8.2.90.0030.00519.04
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.79
8.2.50.0000.00818.07
8.2.40.0090.00018.09
8.2.30.0050.00218.01
8.2.20.0030.00517.59
8.2.10.0000.00717.61
8.2.00.0040.00417.61
8.1.280.0100.01025.92
8.1.270.0040.00422.15
8.1.260.0040.00426.35
8.1.250.0130.00328.09
8.1.240.0040.00423.70
8.1.230.0040.00719.09
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0050.00317.23
8.1.190.0030.00517.41
8.1.180.0030.00618.10
8.1.170.0060.00318.66
8.1.160.0080.00021.96
8.1.150.0070.00018.63
8.1.140.0050.00317.26
8.1.130.0080.00017.81
8.1.120.0050.00517.32
8.1.110.0020.00517.44
8.1.100.0030.00417.41
8.1.90.0050.00217.46
8.1.80.0050.00217.42
8.1.70.0030.00317.39
8.1.60.0060.00317.52
8.1.50.0040.00417.48
8.1.40.0070.00017.35
8.1.30.0080.00017.48
8.1.20.0000.00817.50
8.1.10.0000.00717.36
8.1.00.0000.00817.41
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0030.00318.35
8.0.270.0050.00317.18
8.0.260.0070.00016.89
8.0.250.0030.00316.94
8.0.240.0030.00716.91
8.0.230.0030.00316.98
8.0.220.0060.00016.93
8.0.210.0000.00716.82
8.0.200.0070.00016.84
8.0.190.0080.00016.90
8.0.180.0040.00416.89
8.0.170.0090.00016.95
8.0.160.0060.00316.72
8.0.150.0000.00716.82
8.0.140.0000.00816.75
8.0.130.0080.00013.38
8.0.120.0000.00816.84
8.0.110.0000.00716.93
8.0.100.0040.00416.97
8.0.90.0000.00716.85
8.0.80.0110.00416.90
8.0.70.0040.00416.82
8.0.60.0060.00316.79
8.0.50.0040.00416.97
8.0.30.0100.01016.97
8.0.20.0140.00917.40
8.0.10.0030.00516.88
8.0.00.0030.01616.66
7.4.330.0000.00515.09
7.4.320.0030.00316.41
7.4.300.0000.00616.45
7.4.290.0030.00316.60
7.4.280.0030.00316.61
7.4.270.0030.00516.45
7.4.260.0040.00416.37
7.4.250.0040.00416.43
7.4.240.0000.00716.41
7.4.230.0050.00216.35
7.4.220.0100.00716.50
7.4.210.0110.00716.53
7.4.200.0000.00716.34
7.4.190.0030.00316.73
7.4.160.0120.01216.57
7.4.150.0170.00717.40
7.4.140.0130.00717.86
7.4.130.0100.00716.41
7.4.120.0110.00716.52
7.4.110.0100.00716.66
7.4.100.0090.01216.54
7.4.90.0130.01016.52
7.4.80.0060.01516.38
7.4.70.0100.00716.50
7.4.60.0090.00916.34
7.4.50.0000.00716.38
7.4.40.0120.00322.77
7.4.30.0160.00616.45
7.4.00.0090.00614.86
7.3.330.0000.00513.25
7.3.320.0000.00613.08
7.3.310.0070.00016.39
7.3.300.0000.00716.37
7.3.290.0060.00916.40
7.3.280.0070.01216.38
7.3.270.0100.01017.40
7.3.260.0060.01316.34
7.3.250.0110.00616.42
7.3.240.0110.00716.49
7.3.230.0110.00716.48
7.3.210.0130.00316.59
7.3.200.0130.01019.39
7.3.190.0140.01416.36
7.3.180.0100.01016.37
7.3.170.0170.00316.48
7.3.160.0030.01316.35
7.3.120.0000.01314.68
7.3.10.0090.00916.66
7.3.00.0110.00616.57
7.2.330.0130.00316.61
7.2.320.0060.01216.74
7.2.310.0120.00616.77
7.2.300.0120.00816.70
7.2.290.0090.00916.55
7.2.130.0090.00916.63
7.2.120.0070.00816.84
7.2.110.0090.00416.79
7.2.100.0050.00916.75
7.2.90.0090.00416.85
7.2.80.0060.00616.55
7.2.70.0060.00716.96
7.2.60.0050.00816.59
7.2.50.0080.00616.86
7.2.40.0070.00516.87
7.2.30.0030.00716.90
7.2.20.0070.00716.87
7.2.10.0070.00917.04
7.2.00.0050.00816.89
7.1.250.0070.00515.78
7.1.70.0110.00016.97
7.1.60.0170.00719.32
7.1.50.0090.00916.73
7.1.00.0030.07722.48
7.0.200.0120.00016.68
7.0.140.0070.07022.00
7.0.60.0030.04019.96
7.0.50.0070.08717.79
7.0.40.0030.05320.08
7.0.30.0070.05020.13
7.0.20.0330.07720.16
7.0.10.0030.06320.09
7.0.00.0070.08320.01
5.6.280.0030.07321.14
5.6.210.0100.03320.61
5.6.200.0000.04718.08
5.6.190.0000.08720.43
5.6.180.0230.08320.33
5.6.170.0270.05020.38
5.6.160.0100.07320.40
5.6.150.0070.07318.07
5.6.140.0030.05018.11
5.6.130.0070.04318.20
5.6.120.0100.08020.98
5.6.110.0030.06721.05
5.6.100.0200.06721.01
5.6.90.0030.07721.02
5.6.80.0000.06020.51
5.5.350.2600.03720.45
5.5.340.0200.07017.99
5.5.330.0030.05320.43
5.5.320.0000.07020.24
5.5.310.0200.07020.50
5.5.300.0130.03018.02
5.5.290.0070.03717.95
5.5.280.0070.05320.98
5.5.270.0070.04720.66
5.5.260.0030.06320.77
5.5.250.0170.06020.59
5.5.240.0370.03720.27
5.4.450.0470.06019.55
5.4.440.0470.07019.57
5.4.430.0430.07319.24
5.4.420.0430.06719.56
5.4.410.0370.04719.33
5.4.400.0430.06319.22
5.4.390.0330.03718.88
5.4.380.0530.04319.09
5.4.370.0370.06319.13
5.4.360.0570.03718.91
5.4.350.0500.04019.09
5.4.340.0070.05019.08
5.4.320.3530.04019.08
5.4.310.3470.03018.92
5.4.300.3930.03719.21
5.4.290.3800.03718.89
5.4.280.4000.03019.08
5.4.270.4430.03318.81
5.4.260.3630.04319.21
5.4.250.3900.03319.08
5.4.240.4070.03719.07
5.4.230.3770.03718.80
5.4.220.4270.04719.15
5.4.210.3600.02719.04
5.4.200.3670.04019.13
5.4.190.3600.03319.07
5.4.180.3870.04019.04
5.4.170.3770.04018.78
5.4.160.3800.03019.21
5.4.150.3700.03319.11
5.4.140.3800.03716.31
5.4.130.3970.04316.22
5.4.120.3800.03016.18
5.4.110.3600.04316.21
5.4.100.3570.03716.48
5.4.90.2970.03716.47
5.4.80.4270.04016.48
5.4.70.3570.03316.20
5.4.60.3600.03316.40
5.4.50.3530.03716.38
5.4.40.3530.03716.19
5.4.30.3700.03716.43
5.4.20.3700.03716.36
5.4.10.3800.03716.36
5.4.00.3870.04015.82
5.3.290.3800.02714.59
5.3.280.4130.03314.70
5.3.270.4030.04314.46
5.3.260.3400.04314.71
5.3.250.3730.03714.44
5.3.240.3900.03714.48
5.3.230.3770.04314.66
5.3.220.3870.04014.42
5.3.210.4000.04014.53
5.3.200.3600.03714.50
5.3.190.3230.04014.42
5.3.180.3600.03314.44
5.3.170.3570.04014.56
5.3.160.3570.03314.52
5.3.150.3300.03314.56
5.3.140.4070.03714.52
5.3.130.3500.04014.52
5.3.120.3870.03714.41
5.3.110.3770.03714.44
5.3.100.3900.04313.88
5.3.90.3830.03713.98
5.3.80.3900.03314.01
5.3.70.4000.03713.98
5.3.60.4000.03713.85
5.3.50.4430.04013.80
5.3.40.4530.04714.01
5.3.30.4130.03013.86
5.3.20.3930.03013.59
5.3.10.3730.03713.58
5.3.00.3570.03313.60
5.2.170.3170.02312.46
5.2.160.3870.02712.46
5.2.150.3230.02712.46
5.2.140.3230.03312.46
5.2.130.3230.03012.46
5.2.120.3070.02712.46
5.2.110.3270.03012.46
5.2.100.3400.02012.46
5.2.90.3830.03012.46
5.2.80.2930.03312.46
5.2.70.1700.03012.46
5.2.60.2700.02312.46
5.2.50.3130.03012.46
5.2.40.2630.03012.46
5.2.30.2700.02012.46
5.2.20.2500.02312.46
5.2.10.3170.03012.46
5.2.00.3100.03012.46
5.1.60.3100.02012.46
5.1.50.3000.02312.46
5.1.40.3170.01712.46
5.1.30.2830.03012.46
5.1.20.2630.02712.46
5.1.10.3030.02712.46
5.1.00.2870.02012.46
5.0.50.1630.02012.46
5.0.40.1370.01712.46
5.0.30.1500.03312.46
5.0.20.1270.02012.46
5.0.10.1300.02012.46
5.0.00.1170.03012.46
4.4.90.1470.01712.46
4.4.80.1570.02012.46
4.4.70.1770.01312.46
4.4.60.1530.01712.46
4.4.50.1730.01712.46
4.4.40.1700.02712.46
4.4.30.1730.01712.46
4.4.20.0930.02312.46
4.4.10.1330.01712.46
4.4.00.1270.02312.46
4.3.110.1200.01712.46
4.3.100.1330.01312.46
4.3.90.1230.01012.46
4.3.80.1500.02712.46
4.3.70.1000.02012.46
4.3.60.1200.01312.46
4.3.50.1470.01712.46
4.3.40.1570.02712.46
4.3.30.0830.02012.46
4.3.20.0830.02012.46
4.3.10.0730.01712.46
4.3.00.0730.02312.46

preferences:
39.78 ms | 401 KiB | 5 Q