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, true), "\n"; $bools = (string)$bool; echo 'is ', var_export($bools, true), ' == ', var_export($bool, true), ' ? ', var_export($bools == $bool, true), "\n"; $ints = (string)$int; echo 'is ', var_export($ints, true), ' == ', var_export($int, true), ' ? ', var_export($ints == $int, true), "\n"; echo 'is ', var_export($bools, true), ' == ', var_export($ints, true), ' ? ', var_export($bools == $ints, 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.0120.00316.63
8.3.50.0100.00717.48
8.3.40.0090.00618.71
8.3.30.0110.00418.63
8.3.20.0090.00018.66
8.3.10.0090.00018.57
8.3.00.0060.00319.38
8.2.180.0040.01418.41
8.2.170.0090.01222.96
8.2.160.0110.01121.05
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0070.00026.16
8.2.120.0080.00020.58
8.2.110.0100.00019.36
8.2.100.0000.01217.69
8.2.90.0000.00818.23
8.2.80.0040.00419.28
8.2.70.0030.00517.50
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0040.00418.16
8.2.30.0040.00418.12
8.2.20.0040.00417.77
8.2.10.0000.00817.76
8.2.00.0000.00717.67
8.1.280.0080.00625.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.20
8.1.230.0080.00320.95
8.1.220.0040.00417.80
8.1.210.0080.00018.95
8.1.200.0070.00317.23
8.1.190.0000.00717.53
8.1.180.0000.00818.10
8.1.170.0090.00018.72
8.1.160.0000.00718.82
8.1.150.0030.00618.69
8.1.140.0000.00717.48
8.1.130.0080.00017.83
8.1.120.0070.00017.36
8.1.110.0000.00717.50
8.1.100.0030.00517.46
8.1.90.0070.00017.42
8.1.80.0040.00417.46
8.1.70.0000.00717.40
8.1.60.0000.00817.61
8.1.50.0040.00417.45
8.1.40.0040.00417.53
8.1.30.0000.00817.71
8.1.20.0000.00817.59
8.1.10.0000.00717.44
8.1.00.0000.00817.30
8.0.300.0000.00820.11
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0070.00017.27
8.0.260.0070.00016.83
8.0.250.0070.00016.93
8.0.240.0090.00016.95
8.0.230.0040.00416.86
8.0.220.0000.00816.87
8.0.210.0030.00516.92
8.0.200.0030.00316.92
8.0.190.0120.00016.94
8.0.180.0000.00716.88
8.0.170.0000.00816.91
8.0.160.0000.00816.88
8.0.150.0040.00416.91
8.0.140.0000.00816.75
8.0.130.0030.00313.27
8.0.120.0070.00316.83
8.0.110.0040.00416.80
8.0.100.0040.00416.88
8.0.90.0000.00816.77
8.0.80.0070.00716.88
8.0.70.0040.00416.93
8.0.60.0040.00416.72
8.0.50.0040.00416.71
8.0.30.0110.00716.81
8.0.20.0160.00617.16
8.0.10.0000.00717.00
8.0.00.0090.00916.91
7.4.330.0000.00512.93
7.4.320.0080.00016.50
7.4.300.0000.00616.40
7.4.290.0030.00316.50
7.4.280.0050.00316.60
7.4.270.0050.00216.49
7.4.260.0050.00013.34
7.4.250.0040.00416.49
7.4.240.0030.00316.49
7.4.230.0070.00016.39
7.4.220.0160.01616.38
7.4.210.0060.01016.52
7.4.200.0040.00416.61
7.4.190.0070.00016.69
7.4.160.0100.01316.43
7.4.150.0110.00616.54
7.4.140.0070.01016.49
7.4.130.0140.00416.60
7.4.120.0100.00816.52
7.4.110.0030.01516.66
7.4.100.0090.00916.68
7.4.90.0120.00416.46
7.4.80.0110.01116.63
7.4.70.0060.01516.41
7.4.60.0070.01016.34
7.4.50.0040.00816.58
7.4.40.0070.01116.70
7.4.30.0120.00916.32
7.4.00.0060.01014.96
7.3.330.0000.00612.95
7.3.320.0000.00512.94
7.3.310.0040.00416.33
7.3.300.0070.00016.25
7.3.290.0070.00716.20
7.3.280.0060.01016.20
7.3.270.0110.00716.16
7.3.260.0090.00916.25
7.3.250.0090.00916.47
7.3.240.0180.00416.46
7.3.230.0080.00816.43
7.3.210.0040.01216.34
7.3.200.0070.01019.39
7.3.190.0190.00316.27
7.3.180.0110.00516.16
7.3.170.0100.01016.32
7.3.160.0140.00616.46
7.3.120.0070.00714.73
7.2.330.0090.00916.43
7.2.320.0170.00016.64
7.2.310.0140.00716.58
7.2.300.0060.01016.63
7.2.290.0100.00616.57
7.2.00.0100.01019.30
7.1.100.0100.00317.99
7.1.70.0030.00616.70
7.1.60.0100.01319.40
7.1.50.0030.00916.79
7.1.00.0030.03322.44
7.0.200.0040.00416.71
7.0.140.0030.07322.08
7.0.120.0000.07022.05
7.0.60.0130.05320.02
7.0.50.0030.08717.90
7.0.40.0300.05720.04
7.0.30.0430.06020.19
7.0.20.0300.07720.19
7.0.10.0330.07719.95
7.0.00.0670.06319.97
5.6.210.0070.06020.64
5.6.200.0100.07018.17
5.6.190.0270.05320.77
5.6.180.0230.05320.27
5.6.170.0270.07020.41
5.6.160.0230.06720.39
5.6.150.0300.07720.34
5.6.140.0300.04020.43
5.6.130.0270.05320.35
5.6.120.0270.08020.38
5.6.110.0330.08020.39
5.6.100.0300.04020.37
5.6.90.0230.05720.39
5.6.80.0300.06019.82
5.6.70.0300.05719.48
5.6.60.0330.07719.84
5.6.50.0330.07319.52
5.6.40.0300.06019.46
5.6.30.0200.04719.73
5.6.20.0330.07019.67
5.6.10.0330.04019.83
5.6.00.0330.06719.45
5.5.350.0000.03720.45
5.5.340.0100.05018.02
5.5.330.0230.05320.21
5.5.320.0430.06320.25
5.5.310.0330.07720.07
5.5.300.0200.06020.26
5.5.290.0330.05720.23
5.5.280.0270.05020.14
5.5.270.0300.07720.17
5.5.260.0430.06719.91
5.5.250.0370.07020.05
5.5.240.0270.04319.51
5.5.230.0330.05319.64
5.5.220.0470.06319.35
5.5.210.0270.04719.65
5.5.200.0300.04319.26
5.5.190.0300.05719.59
5.5.180.0270.06719.55
5.5.160.0230.06719.42
5.5.150.0270.04019.43
5.5.140.0230.08319.55
5.5.130.0300.07319.48
5.5.120.0370.05319.52
5.5.110.0230.07719.46
5.5.100.0300.05019.22
5.5.90.0230.05319.37
5.5.80.0300.07319.26
5.5.70.0330.06719.23
5.5.60.0330.06719.38
5.5.50.0370.07719.41
5.5.40.0270.05719.46
5.5.30.0300.08019.37
5.5.20.0400.06319.25
5.5.10.0230.06019.31
5.5.00.0330.06319.23
5.4.450.0530.04719.41
5.4.440.0300.06319.41
5.4.430.0270.07719.50
5.4.420.0300.04019.50
5.4.410.0330.07319.28
5.4.400.0170.04319.09
5.4.390.0270.04718.83
5.4.380.0300.06719.18
5.4.370.0300.05319.00
5.4.360.0370.05319.15
5.4.350.0330.04018.81
5.4.340.0370.06719.14
5.4.320.0270.07318.93
5.4.310.0270.07318.92
5.4.300.0300.07019.07
5.4.290.0300.06719.08
5.4.280.0330.03719.12
5.4.270.0270.05718.79
5.4.260.0300.06718.79
5.4.250.0430.06019.17
5.4.240.0370.06319.11
5.4.230.0330.06719.17
5.4.220.0270.04019.00
5.4.210.0270.04318.79
5.4.200.0230.07719.07
5.4.190.0300.06318.78
5.4.180.0270.05018.91
5.4.170.0300.03718.95
5.4.160.0370.07019.12
5.4.150.0300.07019.16
5.4.140.0200.06316.26
5.4.130.0330.06016.23
5.4.120.0230.08316.19
5.4.110.0200.03716.41
5.4.100.0230.05016.35
5.4.90.0200.03716.39
5.4.80.0200.03316.39
5.4.70.0170.04016.31
5.4.60.0230.03016.31
5.4.50.0170.04016.33
5.4.40.0270.03316.38
5.4.30.0200.03316.58
5.4.20.0330.02716.32
5.4.10.0200.06716.36
5.4.00.0230.04015.79
5.3.290.0300.06014.65
5.3.280.0300.07714.43
5.3.270.0470.04714.41
5.3.260.0200.06314.58
5.3.250.0400.06014.41
5.3.240.0470.05314.50
5.3.230.0270.07314.60
5.3.220.0170.04314.42
5.3.210.0170.04314.50
5.3.200.0470.03314.53
5.3.190.0270.03014.51
5.3.180.0200.03314.54
5.3.170.0170.04014.50
5.3.160.0170.03714.47
5.3.150.0200.03314.66
5.3.140.0170.04014.46
5.3.130.0330.03014.45
5.3.120.0200.03714.50
5.3.110.0200.03714.48
5.3.100.0200.03713.99
5.3.90.0200.03313.82
5.3.80.0330.06313.85
5.3.70.0200.07013.86
5.3.60.0170.04313.95
5.3.50.0170.04313.94
5.3.40.0270.04713.76
5.3.30.0370.06013.88
5.3.20.0300.04013.50
5.3.10.0200.03313.64
5.3.00.0170.04013.67
5.2.170.0300.03312.46
5.2.160.0200.03312.46
5.2.150.0230.06012.46
5.2.140.0270.04012.46
5.2.130.0430.02712.46
5.2.120.0200.02312.46
5.2.110.0130.04312.46
5.2.100.0130.03012.46
5.2.90.0200.02312.46
5.2.80.0100.03312.46
5.2.70.0270.02312.46
5.2.60.0170.03012.46
5.2.50.0130.04012.46
5.2.40.0170.02312.46
5.2.30.0100.03012.46
5.2.20.0100.03012.46
5.2.10.0130.02712.46
5.2.00.0130.02712.46
5.1.60.0130.02312.46
5.1.50.0170.02012.46
5.1.40.0070.03012.46
5.1.30.0070.03012.46
5.1.20.0100.02712.46
5.1.10.0100.02712.46
5.1.00.0170.02312.46
5.0.50.0030.02312.46
5.0.40.0100.01712.46
5.0.30.0070.04012.46
5.0.20.0170.03312.46
5.0.10.0100.02312.46
5.0.00.0100.02712.46
4.4.90.0070.01712.46
4.4.80.0030.01712.46
4.4.70.0030.02012.46
4.4.60.0030.01712.46
4.4.50.0070.01712.46
4.4.40.0030.02712.46
4.4.30.0100.01012.46
4.4.20.0070.01312.46
4.4.10.0070.01312.46
4.4.00.0070.02312.46
4.3.110.0130.02312.46
4.3.100.0030.01712.46
4.3.90.0070.02012.46
4.3.80.0100.05012.46
4.3.70.0070.03312.46
4.3.60.0130.02712.46
4.3.50.0100.03712.46
4.3.40.0100.05012.46
4.3.30.0030.03312.46
4.3.20.0000.03312.46
4.3.10.0030.02312.46
4.3.00.0030.04012.46

preferences:
50.82 ms | 401 KiB | 5 Q