3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array("", NULL, 0, 1, "0", "1", true, false, new stdClass(), array(1), array()); echo "X\t!!(x)\t(x==true)\t(x===true)=\n\n"; foreach($test as $t) { echo var_export($t, true) . "\t" . var_export((!!$t), true) . "\t" . var_export(($t==true),true). "\t" . var_export(($t===true),true). "\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.0070.01016.50
8.3.50.0100.01221.08
8.3.40.0150.00318.89
8.3.30.0100.01019.04
8.3.20.0000.00820.18
8.3.10.0070.00021.96
8.3.00.0040.00417.38
8.2.180.0090.00618.05
8.2.170.0100.01022.96
8.2.160.0070.00720.64
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00526.16
8.2.120.0080.00019.48
8.2.110.0060.00320.52
8.2.100.0090.00319.36
8.2.90.0040.00419.17
8.2.80.0080.00017.97
8.2.70.0000.01117.50
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0050.00319.85
8.2.30.0040.00417.99
8.2.20.0000.00817.56
8.2.10.0040.00417.94
8.2.00.0000.01017.75
8.1.280.0090.01225.92
8.1.270.0090.00620.35
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00422.37
8.1.230.0080.00317.54
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.22
8.1.190.0060.00317.12
8.1.180.0050.00318.10
8.1.170.0040.00420.22
8.1.160.0000.00821.89
8.1.150.0050.00318.95
8.1.140.0000.00717.36
8.1.130.0050.00317.89
8.1.120.0040.00417.51
8.1.110.0040.00417.37
8.1.100.0000.00817.43
8.1.90.0040.00417.49
8.1.80.0040.00417.51
8.1.70.0030.00317.47
8.1.60.0030.00617.47
8.1.50.0040.00417.50
8.1.40.0000.00917.57
8.1.30.0050.00317.49
8.1.20.0000.00817.68
8.1.10.0000.00817.49
8.1.00.0000.00717.37
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.45
8.0.270.0000.00717.34
8.0.260.0030.00317.37
8.0.250.0000.00716.99
8.0.240.0000.00716.98
8.0.230.0070.00017.00
8.0.220.0070.00016.94
8.0.210.0040.00416.89
8.0.200.0000.00616.98
8.0.190.0000.00716.87
8.0.180.0070.00016.89
8.0.170.0080.00016.95
8.0.160.0050.00316.83
8.0.150.0000.01016.93
8.0.140.0070.00016.90
8.0.130.0000.00713.32
8.0.120.0080.00016.84
8.0.110.0000.00716.88
8.0.100.0040.00416.89
8.0.90.0040.00416.85
8.0.80.0090.00616.89
8.0.70.0040.00416.77
8.0.60.0000.00716.79
8.0.50.0040.00416.79
8.0.30.0110.00717.21
8.0.20.0120.01417.41
8.0.10.0000.00816.91
8.0.00.0070.01016.69
7.4.330.0050.00015.09
7.4.320.0060.00016.41
7.4.300.0000.00616.46
7.4.290.0030.00316.41
7.4.280.0050.00316.46
7.4.270.0000.00716.60
7.4.260.0000.00716.61
7.4.250.0040.00416.42
7.4.240.0020.00616.54
7.4.230.0030.00316.62
7.4.220.0100.00716.46
7.4.210.0090.00616.56
7.4.200.0000.00716.35
7.4.160.0060.01016.60
7.4.150.0060.01217.40
7.4.140.0090.01317.86
7.4.130.0100.00616.59
7.4.120.0120.00816.44
7.4.110.0070.01116.43
7.4.100.0180.00016.44
7.4.90.0060.01116.32
7.4.80.0170.00019.39
7.4.70.0070.01116.43
7.4.60.0080.00916.38
7.4.50.0060.00316.42
7.4.40.0070.01016.47
7.4.30.0100.00716.46
7.4.00.0040.00914.71
7.3.330.0060.00013.12
7.3.320.0130.00313.20
7.3.310.0000.00716.38
7.3.300.0000.00716.23
7.3.290.0080.00816.34
7.3.280.0110.00716.38
7.3.270.0130.00317.40
7.3.260.0090.01516.45
7.3.250.0120.00716.40
7.3.240.0080.00816.61
7.3.230.0120.00616.40
7.3.210.0110.00616.31
7.3.200.0060.01019.39
7.3.190.0060.01016.38
7.3.180.0060.00916.47
7.3.170.0090.00916.42
7.3.160.0030.01316.26
7.3.120.0090.01014.88
7.3.110.0070.01015.10
7.3.100.0040.01114.96
7.3.90.0100.00714.82
7.3.80.0000.01314.66
7.3.70.0030.00914.80
7.3.60.0060.00314.55
7.3.50.0080.00814.48
7.3.40.0100.00314.92
7.3.30.0130.00314.84
7.3.20.0110.00316.79
7.3.10.0000.01316.67
7.3.00.0030.01216.72
7.2.330.0030.01416.51
7.2.320.0060.01216.72
7.2.310.0130.00616.43
7.2.300.0060.01116.39
7.2.290.0070.01016.44
7.2.250.0150.00414.85
7.2.240.0070.01415.22
7.2.230.0110.00715.15
7.2.220.0090.00015.33
7.2.210.0100.00715.15
7.2.200.0090.00614.94
7.2.190.0000.01115.28
7.2.180.0070.01015.02
7.2.170.0060.00915.10
7.2.60.0070.00416.91
7.2.00.0000.01219.44
7.1.330.0070.00715.83
7.1.320.0030.00915.98
7.1.310.0070.00715.95
7.1.300.0030.00615.91
7.1.290.0030.01015.53
7.1.280.0000.01615.71
7.1.270.0030.01015.57
7.1.260.0000.01315.62
7.1.200.0030.01015.83
7.1.100.0060.00617.76
7.1.70.0000.01017.29
7.1.60.0070.01819.50
7.1.50.0190.00616.86
7.1.00.0100.06722.30
7.0.200.0030.00715.05
7.0.140.0000.06322.07
7.0.60.0070.06720.04
7.0.50.0170.07317.77
7.0.40.0070.08719.96
7.0.30.0200.07020.13
7.0.20.0270.05320.12
7.0.10.0200.08020.00
7.0.00.0030.05020.16
5.6.280.0100.06320.78
5.6.210.0070.06720.66
5.6.200.0000.04718.09
5.6.190.0030.09020.60
5.6.180.0370.07720.32
5.6.170.0300.05020.50
5.6.160.0070.05020.48
5.6.150.0000.04318.07
5.6.140.0030.04318.07
5.6.130.0070.07718.22
5.6.120.0000.06720.99
5.6.110.0000.04320.98
5.6.100.0230.03020.96
5.6.90.0130.07720.94
5.6.80.0030.04020.46
5.6.70.0300.07020.40
5.5.350.0330.07020.36
5.5.340.0100.03318.02
5.5.330.0000.09020.21
5.5.320.0400.07320.23
5.5.310.0330.05320.26
5.5.300.0000.04318.01
5.5.290.0000.08717.92
5.5.280.0100.08020.97
5.5.270.0000.05020.76
5.5.260.0270.06020.86
5.5.250.0000.09020.69
5.5.240.0030.07320.18
5.4.450.0470.07719.48
5.4.440.0800.06019.45
5.4.430.0830.07719.51
5.4.420.0100.06319.22
5.4.410.0130.05318.68
5.4.400.0430.06018.49
5.4.390.0430.05018.75
5.4.380.0370.07018.74
5.4.370.0300.06018.72
5.4.360.0570.05318.46
5.4.350.0530.08018.56
5.4.340.0600.04318.74
5.4.320.0330.07718.73
5.4.310.0270.07318.70
5.4.300.0470.04718.63
5.4.290.0400.07018.72
5.4.280.0430.06018.56
5.4.270.0500.06718.73
5.4.260.0270.06718.71
5.4.250.0330.06318.46
5.4.240.0370.07718.58
5.4.230.1030.04318.62
5.4.220.0500.06718.49
5.4.210.1100.05718.51
5.4.200.0300.05316.64
5.4.190.0300.07018.76
5.4.180.1930.07718.52
5.4.170.0200.05718.66
5.4.160.1900.06318.48
5.4.150.0470.06018.75
5.4.140.1670.07016.27
5.4.130.0600.05716.21
5.4.120.0530.07016.22
5.4.110.0370.07016.18
5.4.100.0370.06016.13
5.4.90.0270.07016.25
5.4.80.0430.06016.23
5.4.70.0230.06316.14
5.4.60.0300.05016.24
5.4.50.0300.05016.16
5.4.40.0270.05716.23
5.4.30.0630.06316.19
5.4.20.0330.07716.13
5.4.10.0400.06316.21
5.4.00.3930.05715.78
5.3.290.0400.05314.64
5.3.280.0430.05714.51
5.3.270.0270.06714.58
5.3.260.0470.07714.58
5.3.250.0530.06014.58
5.3.240.0370.06314.61
5.3.230.0400.06314.51
5.3.220.0370.07714.48
5.3.210.0400.07014.54
5.3.200.0270.06014.66
5.3.190.0500.04314.49
5.3.180.0300.06014.49
5.3.170.0270.04714.54
5.3.160.0700.04714.55
5.3.150.0430.06014.52
5.3.140.0570.06014.52
5.3.130.0630.05014.66
5.3.120.0470.05014.64
5.3.110.0270.08014.59
5.3.100.0370.05013.93
5.3.90.0370.07713.98
5.3.80.0430.04714.01
5.3.70.0370.06013.96
5.3.60.0500.06313.99
5.3.50.0330.07013.89
5.3.40.0430.06013.98
5.3.30.0630.05313.89
5.3.20.0570.05713.66
5.3.10.0270.05713.61
5.3.00.0500.06713.59
5.2.170.0270.06711.08
5.2.160.0400.06011.14
5.2.150.0170.05311.19
5.2.140.0200.05011.13
5.2.130.0370.05311.07
5.2.120.0430.04011.19
5.2.110.0430.05011.19
5.2.100.0530.04311.15
5.2.90.0370.03711.17
5.2.80.0430.03711.09
5.2.70.0270.06011.02
5.2.60.0370.06011.20
5.2.50.0300.06011.18
5.2.40.0270.05011.04
5.2.30.0230.06311.01
5.2.20.0330.03311.00
5.2.10.0330.04310.91
5.2.00.0270.05310.84
5.1.60.0300.06010.05
5.1.50.0470.03710.01
5.1.40.0170.0479.98
5.1.30.0430.04710.29
5.1.20.0270.05310.33
5.1.10.0430.03010.19
5.1.00.0330.04710.07
5.0.50.0270.0308.57
5.0.40.0170.0338.47
5.0.30.0230.0478.30
5.0.20.0170.0408.24
5.0.10.0270.0308.13
5.0.00.0170.0608.21
4.4.90.0170.0305.89
4.4.80.0270.0205.83
4.4.70.0200.0305.91
4.4.60.0100.0305.91
4.4.50.0130.0275.88
4.4.40.0900.0405.82
4.4.30.0230.0205.90
4.4.20.0070.0375.98
4.4.10.0100.0235.98
4.4.00.0130.0335.93
4.3.110.0170.0205.80
4.3.100.0130.0305.80
4.3.90.0130.0175.79
4.3.80.0130.0375.80
4.3.70.0200.0205.88
4.3.60.0900.0205.86
4.3.50.0100.0275.83
4.3.40.0130.0435.79
4.3.30.0070.0334.56
4.3.20.0130.0234.60
4.3.10.0030.0274.55
4.3.00.0030.0306.82

preferences:
56.13 ms | 401 KiB | 5 Q