3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bool = false; $int = 0; echo 'is ', var_export($bool, true), ' == ', var_export($int, true), ' ? ', var_export($bool == $int), "\n"; $bools = (string)$bool; echo 'is ', var_export($bools, true), ' == ', var_export($bool, true), ' ? ', var_export($bools == $bool), "\n"; $int = (int)$str; echo 'is ', var_export($int, true), ' empty? ', var_export(empty($int)), "\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.01018.43
8.3.50.0100.01316.59
8.3.40.0060.01019.00
8.3.30.0120.00418.73
8.3.20.0080.00018.77
8.3.10.0080.00020.65
8.3.00.0090.00017.36
8.2.180.0100.01016.50
8.2.170.0000.01522.96
8.2.160.0110.00422.13
8.2.150.0000.00824.18
8.2.140.0020.00524.66
8.2.130.0000.00826.16
8.2.120.0000.00819.64
8.2.110.0070.00320.93
8.2.100.0050.00517.91
8.2.90.0040.00419.27
8.2.80.0000.00717.97
8.2.70.0060.00317.75
8.2.60.0000.00717.80
8.2.50.0080.00018.07
8.2.40.0050.00318.16
8.2.30.0040.00417.99
8.2.20.0000.00817.69
8.2.10.0070.00017.80
8.2.00.0040.00417.67
8.1.280.0060.00925.92
8.1.270.0000.00723.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00420.76
8.1.230.0120.00020.97
8.1.220.0000.00818.77
8.1.210.0060.00319.03
8.1.200.0000.00817.22
8.1.190.0000.00717.53
8.1.180.0050.00318.10
8.1.170.0000.00818.84
8.1.160.0040.00418.75
8.1.150.0080.00018.55
8.1.140.0040.00417.35
8.1.130.0030.00317.75
8.1.120.0000.00817.43
8.1.110.0000.00717.34
8.1.100.0070.00017.46
8.1.90.0000.00717.45
8.1.80.0040.00417.46
8.1.70.0030.00617.43
8.1.60.0050.00317.50
8.1.50.0000.00717.49
8.1.40.0040.00417.51
8.1.30.0000.00717.54
8.1.20.0060.00317.69
8.1.10.0000.00717.49
8.1.00.0040.00417.29
8.0.300.0030.00519.98
8.0.290.0000.00716.75
8.0.280.0040.00418.48
8.0.270.0030.00317.10
8.0.260.0070.00018.68
8.0.250.0000.00717.02
8.0.240.0040.00416.99
8.0.230.0030.00316.88
8.0.220.0000.00816.96
8.0.210.0030.00316.81
8.0.200.0000.00616.89
8.0.190.0000.00817.03
8.0.180.0040.00416.88
8.0.170.0040.00416.85
8.0.160.0040.00416.94
8.0.150.0080.00016.84
8.0.140.0000.01116.82
8.0.130.0080.00013.34
8.0.120.0050.00316.80
8.0.110.0040.00416.91
8.0.100.0040.00416.97
8.0.90.0040.00416.85
8.0.80.0100.01016.92
8.0.70.0070.00016.95
8.0.60.0040.00416.89
8.0.50.0040.00416.79
8.0.30.0080.01117.02
8.0.20.0080.01017.07
8.0.10.0040.00417.02
8.0.00.0080.01116.80
7.4.330.0000.00514.66
7.4.320.0070.00016.44
7.4.300.0060.00016.64
7.4.290.0030.00316.42
7.4.280.0030.00616.63
7.4.270.0000.00716.39
7.4.260.0050.00013.23
7.4.250.0000.00816.49
7.4.240.0040.00416.35
7.4.230.0000.00716.47
7.4.220.0180.00316.63
7.4.210.0060.00916.48
7.4.200.0030.00416.63
7.4.190.0040.00416.61
7.4.160.0070.01016.48
7.4.150.0170.00017.07
7.4.140.0120.00517.27
7.4.130.0050.01416.53
7.4.120.0110.00616.50
7.4.110.0120.00616.80
7.4.100.0100.01016.39
7.4.90.0090.01216.47
7.4.80.0000.01818.80
7.4.70.0100.00716.53
7.4.60.0100.00716.75
7.4.50.0070.00016.39
7.4.40.0090.00422.27
7.4.30.0120.00616.55
7.4.00.0040.01415.09
7.3.330.0000.00613.16
7.3.320.0030.00312.98
7.3.310.0040.00416.12
7.3.300.0030.00316.30
7.3.290.0150.00016.21
7.3.280.0080.00916.27
7.3.270.0060.01217.07
7.3.260.0100.00918.24
7.3.250.0080.01016.31
7.3.240.0060.01516.32
7.3.230.0120.00416.47
7.3.210.0290.01016.52
7.3.200.0090.01219.39
7.3.190.0080.00916.43
7.3.180.0080.00816.40
7.3.170.0050.01116.36
7.3.160.0040.01216.28
7.3.120.0070.01014.74
7.3.110.0030.01214.49
7.3.100.0100.00314.96
7.3.90.0070.01014.62
7.3.80.0080.00414.68
7.3.70.0030.01614.55
7.3.60.0060.00314.81
7.3.50.0100.01014.41
7.3.40.0070.00314.57
7.3.30.0030.00714.74
7.3.20.0100.00616.67
7.3.10.0050.00816.67
7.3.00.0040.00716.29
7.2.330.0100.00716.68
7.2.320.0090.00916.68
7.2.310.0090.01216.57
7.2.300.0070.01116.57
7.2.290.0080.00916.49
7.2.240.0090.00614.76
7.2.230.0100.00715.13
7.2.220.0000.01715.05
7.2.210.0000.00915.07
7.2.200.0000.01014.98
7.2.190.0000.01614.77
7.2.180.0070.01314.79
7.2.170.0100.00315.04
7.2.160.0060.00614.93
7.2.150.0040.01116.98
7.2.140.0070.00316.70
7.2.130.0110.00716.67
7.2.120.0120.00617.04
7.2.110.0080.00816.93
7.2.100.0000.01316.69
7.2.90.0040.00716.96
7.2.80.0030.01316.80
7.2.70.0070.00716.98
7.2.60.0070.00716.79
7.2.50.0100.00716.96
7.2.40.0060.00616.66
7.2.30.0070.00316.95
7.2.20.0040.01216.88
7.2.10.0030.01216.88
7.2.00.0030.01118.05
7.1.330.0090.00915.52
7.1.320.0090.00615.73
7.1.310.0030.01315.67
7.1.300.0000.01015.64
7.1.290.0070.00715.58
7.1.280.0070.00715.65
7.1.270.0000.01415.66
7.1.260.0000.01115.69
7.1.250.0040.00815.63
7.1.100.0050.00818.02
7.1.70.0000.01017.14
7.1.60.0060.01019.40
7.1.50.0040.01616.64
7.1.00.0070.03022.54
7.0.200.0000.00916.83
7.0.140.0030.07322.15
7.0.60.0130.06019.98
7.0.50.0100.07717.84
7.0.40.0070.08717.85
7.0.30.0100.07317.76
7.0.20.0100.06017.70
7.0.10.0030.08717.68
7.0.00.0100.05017.65
5.6.280.0000.07721.14
5.6.210.0100.07720.51
5.6.200.0070.07718.12
5.6.190.0200.07018.07
5.6.180.0000.04718.13
5.6.170.0030.05718.15
5.6.160.0070.06018.22
5.6.150.0130.03318.16
5.6.140.0070.05718.14
5.6.130.0070.05018.22
5.6.120.0070.04018.11
5.6.110.0030.06318.16
5.6.100.0070.06018.21
5.6.90.0070.06018.09
5.6.80.0070.03717.57
5.6.70.0100.06717.57
5.6.60.0070.08317.46
5.6.50.0170.07317.61
5.6.40.0070.08017.47
5.6.30.0030.05017.46
5.6.20.0070.03317.55
5.6.10.0000.04317.54
5.6.00.0100.03717.52
5.5.350.0230.07320.37
5.5.340.0100.04018.02
5.5.330.0030.08717.96
5.5.320.0100.07717.96
5.5.310.0100.07717.96
5.5.300.0130.05317.92
5.5.290.0130.07017.88
5.5.280.0030.05318.02
5.5.270.0030.08317.91
5.5.260.0070.08317.99
5.5.250.0070.07717.77
5.5.240.0100.04717.36
5.5.230.0000.08717.38
5.5.220.0030.07717.34
5.5.210.0100.07017.38
5.5.200.0130.06317.37
5.5.190.0100.07717.37
5.5.180.0030.07317.37
5.5.160.0130.03017.33
5.5.150.0030.03717.31
5.5.140.0000.04017.36
5.5.130.0030.03717.22
5.5.120.0030.03717.27
5.5.110.0000.04317.29
5.5.100.0030.04017.20
5.5.90.0030.03717.16
5.5.80.0030.03717.15
5.5.70.0000.04017.16
5.5.60.0030.03717.21
5.5.50.0000.03717.19
5.5.40.0030.03717.26
5.5.30.0070.03317.11
5.5.20.0000.04017.16
5.5.10.0100.03017.17
5.5.00.0000.04017.15
5.4.450.0030.04019.34
5.4.440.0100.08019.30
5.4.430.0130.07719.34
5.4.420.0070.08319.44
5.4.410.0070.08019.29
5.4.400.0030.07719.04
5.4.390.0030.08018.98
5.4.380.0070.05719.07
5.4.370.0000.04318.98
5.4.360.0130.07018.98
5.4.350.0170.05018.98
5.4.340.0100.04018.98
5.4.320.0130.03019.03
5.4.310.0070.03319.03
5.4.300.0070.03319.11
5.4.290.0030.05718.82
5.4.280.0000.04019.03
5.4.270.0030.04718.99
5.4.260.0070.03319.12
5.4.250.0030.03719.20
5.4.240.0030.03718.89
5.4.230.0030.03718.97
5.4.220.0000.04019.20
5.4.210.0030.03718.98
5.4.200.0030.03719.02
5.4.190.0070.03318.98
5.4.180.0100.03018.98
5.4.170.0100.04018.81
5.4.160.0030.03718.80
5.4.150.0000.04019.09
5.4.140.0030.03716.26
5.4.130.0030.03716.27
5.4.120.0030.03716.33
5.4.110.0000.03716.32
5.4.100.0070.03016.36
5.4.90.0030.03316.33
5.4.80.0030.03316.27
5.4.70.0100.04316.24
5.4.60.0070.07016.25
5.4.50.0100.06316.23
5.4.40.0070.04016.46
5.4.30.0000.07716.26
5.4.20.0030.06316.36
5.4.10.0130.06716.25
5.4.00.0070.07015.78
5.3.290.0070.03314.64
5.3.280.0000.04014.56
5.3.270.0100.03014.52
5.3.260.0070.03314.57
5.3.250.0030.03714.57
5.3.240.0000.03714.46
5.3.230.0030.03714.57
5.3.220.0030.03714.52
5.3.210.0030.03714.54
5.3.200.0000.04014.55
5.3.190.0070.03314.55
5.3.180.0030.04714.51
5.3.170.0030.03714.49
5.3.160.0130.07314.52
5.3.150.0100.03314.55
5.3.140.0000.07714.38
5.3.130.0030.05014.40
5.3.120.0100.07014.47
5.3.110.0070.07014.48
5.3.100.0070.07014.00
5.3.90.0100.07713.98
5.3.80.0130.05013.94
5.3.70.0170.06713.94
5.3.60.0030.04013.91
5.3.50.0070.05713.91
5.3.40.0030.07713.90
5.3.30.0170.05313.68
5.3.20.0030.08013.47
5.3.10.0100.05313.59
5.3.00.0070.07013.60
5.2.170.0130.05011.11
5.2.160.0070.06011.09
5.2.150.0100.05010.97
5.2.140.0070.06311.12
5.2.130.0100.05711.08
5.2.120.0030.06310.93
5.2.110.0100.05311.13
5.2.100.0030.06711.09
5.2.90.0070.04711.08
5.2.80.0070.05010.95
5.2.70.0030.05311.09
5.2.60.0070.05711.04
5.2.50.0000.06310.98
5.2.40.0070.06010.94
5.2.30.0030.06310.94
5.2.20.0000.05710.88
5.2.10.0030.02710.89
5.2.00.0070.02710.79
5.1.60.0030.02310.04
5.1.50.0000.0479.82
5.1.40.0070.05310.04
5.1.30.0100.02310.23
5.1.20.0000.05710.27
5.1.10.0030.04310.05
5.1.00.0030.03310.05
5.0.50.0000.0238.49
5.0.40.0000.0478.35
5.0.30.0100.0638.23
5.0.20.0070.0408.28
5.0.10.0070.0438.27
5.0.00.0000.0578.17
4.4.90.0070.0278.17
4.4.80.0030.0308.17
4.4.70.0030.0278.17
4.4.60.0000.0278.17
4.4.50.0000.0178.17
4.4.40.0000.0308.17
4.4.30.0000.0378.17
4.4.20.0070.0308.17
4.4.10.0000.0178.17
4.4.00.0030.0378.17
4.3.110.0000.0278.17
4.3.100.0000.0378.17
4.3.90.0070.0308.17
4.3.80.0030.0508.17
4.3.70.0030.0308.17
4.3.60.0030.0378.17
4.3.50.0030.0338.17
4.3.40.0000.0378.17
4.3.30.0030.0178.17
4.3.20.0030.0178.17
4.3.10.0070.0308.17
4.3.00.0000.0238.17

preferences:
47.01 ms | 401 KiB | 5 Q