3v4l.org

run code in 300+ PHP versions simultaneously
<?php if( true OR false ) echo "1st true\n"; // OK if( false OR true ) echo "2nd true\n"; // OK $bar = true; $foo = false; $wat = $bar OR $foo; echo $wat ."\n"; // OK: 1 if( $wat ) echo "wat = T|F\n"; $wat = $foo OR $bar; echo $wat ."\n"; // WAT? doesn't print? if( false OR $bar ) echo "F | bar\n"; // OK if( $foo OR $bar ) echo "foo | bar\n"; // OK if( $wat ) echo "wat = F|T\n"; // WAT? doesn't print? var_dump( false OR true ); // OK: bool(true) $wat = false OR true; var_dump( $wat ); // WAT? bool(false)

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.140.0000.00820.73
8.3.130.0040.00418.50
8.3.120.0120.00619.16
8.3.110.0030.00616.88
8.3.100.0050.00324.06
8.3.90.0090.00626.77
8.3.80.0000.00919.36
8.3.70.0070.01116.75
8.3.60.0140.00318.55
8.3.50.0170.00521.09
8.3.40.0140.00718.97
8.3.30.0030.01019.04
8.3.20.0000.00820.39
8.3.10.0080.00023.66
8.3.00.0080.00018.95
8.2.250.0070.00316.56
8.2.240.0090.00018.93
8.2.230.0060.00320.94
8.2.220.0050.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0110.00716.75
8.2.180.0120.00618.30
8.2.170.0040.01122.96
8.2.160.0130.00022.26
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00421.06
8.2.110.0000.00922.30
8.2.100.0030.00917.91
8.2.90.0000.00817.85
8.2.80.0030.00619.16
8.2.70.0030.00719.66
8.2.60.0080.00417.90
8.2.50.0060.00318.10
8.2.40.0080.00020.32
8.2.30.0070.00017.95
8.2.20.0050.00317.67
8.2.10.0080.00018.04
8.2.00.0040.00417.72
8.1.300.0040.00416.07
8.1.290.0100.00030.84
8.1.280.0070.01425.92
8.1.270.0030.00623.99
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0000.00922.03
8.1.230.0040.00721.04
8.1.220.0000.00717.79
8.1.210.0060.00318.77
8.1.200.0050.00317.35
8.1.190.0060.00317.11
8.1.180.0060.00318.10
8.1.170.0030.00518.66
8.1.160.0030.00322.26
8.1.150.0040.00418.95
8.1.140.0000.00717.46
8.1.130.0040.00417.95
8.1.120.0000.00717.43
8.1.110.0080.00017.41
8.1.100.0000.00717.52
8.1.90.0030.00317.42
8.1.80.0070.00017.51
8.1.70.0070.00017.43
8.1.60.0080.00017.48
8.1.50.0000.00817.41
8.1.40.0000.00717.49
8.1.30.0050.00317.65
8.1.20.0040.00417.64
8.1.10.0000.00817.42
8.1.00.0000.00817.49
8.0.300.0000.00719.93
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0050.00316.89
8.0.260.0030.00317.12
8.0.250.0070.00017.04
8.0.240.0030.00316.90
8.0.230.0000.00717.02
8.0.220.0000.00716.99
8.0.210.0000.00717.00
8.0.200.0000.00916.70
8.0.190.0000.00716.95
8.0.180.0040.00417.00
8.0.170.0030.00516.88
8.0.160.0040.00416.95
8.0.150.0030.00316.99
8.0.140.0070.00016.89
8.0.130.0040.00413.38
8.0.120.0040.00416.84
8.0.110.0000.00816.95
8.0.100.0020.00517.03
8.0.90.0070.00016.93
8.0.80.0120.00317.01
8.0.70.0000.00716.83
8.0.60.0000.00816.85
8.0.50.0000.00716.81
8.0.30.0160.00717.09
8.0.20.0120.00917.40
8.0.10.0040.00417.02
8.0.00.0120.00616.96
7.4.330.0050.00015.03
7.4.320.0070.00016.63
7.4.300.0060.00016.52
7.4.290.0070.00016.61
7.4.280.0030.00516.46
7.4.270.0000.00716.63
7.4.260.0060.00316.59
7.4.250.0000.00816.58
7.4.240.0040.00416.59
7.4.230.0070.00016.46
7.4.220.0090.00916.52
7.4.210.0070.00716.65
7.4.200.0040.00316.40
7.4.160.0040.01116.62
7.4.150.0060.01217.40
7.4.140.0100.01017.86
7.4.130.0090.01016.45
7.4.120.0130.00516.53
7.4.110.0060.01216.38
7.4.100.0170.00716.63
7.4.90.0130.00416.43
7.4.80.0050.01119.39
7.4.70.0070.01216.49
7.4.60.0130.00316.43
7.4.50.0090.00016.60
7.4.40.0070.01016.58
7.4.30.0070.01416.44
7.4.10.0070.00714.85
7.4.00.0050.01214.92
7.3.330.0000.00613.09
7.3.320.0020.00213.06
7.3.310.0000.00716.28
7.3.300.0070.00016.32
7.3.290.0090.00816.29
7.3.280.0060.01316.33
7.3.270.0140.00317.40
7.3.260.0120.00616.32
7.3.250.0100.00616.39
7.3.240.0100.00716.19
7.3.230.0090.00916.42
7.3.210.0080.00816.56
7.3.200.0120.00619.39
7.3.190.0060.01016.48
7.3.180.0000.01616.41
7.3.170.0070.01116.36
7.3.160.0120.00916.30
7.3.130.0140.00314.84
7.3.120.0090.00714.86
7.3.110.0090.00914.83
7.3.100.0080.01014.70
7.3.90.0050.01114.74
7.3.80.0040.00815.02
7.3.70.0070.00714.70
7.3.60.0050.00814.69
7.3.50.0060.00814.72
7.3.40.0070.00814.73
7.3.30.0020.00814.81
7.3.20.0060.00816.59
7.3.10.0070.00716.53
7.3.00.0040.00816.51
7.2.330.0070.01116.36
7.2.320.0130.00316.63
7.2.310.0100.00716.66
7.2.300.0120.00316.51
7.2.290.0040.01216.55
7.2.260.0070.01315.01
7.2.250.0050.01115.02
7.2.240.0050.01215.01
7.2.230.0030.01314.90
7.2.220.0080.00314.91
7.2.210.0070.00814.78
7.2.200.0060.00814.86
7.2.190.0060.00814.86
7.2.180.0050.00914.97
7.2.170.0070.00814.86
7.2.160.0070.00514.90
7.2.150.0030.01216.73
7.2.140.0060.00716.89
7.2.130.0050.00816.97
7.2.120.0040.00916.90
7.2.110.0030.01016.83
7.2.100.0080.00416.90
7.2.90.0070.00716.87
7.2.80.0060.00616.91
7.2.70.0040.01217.01
7.2.60.0070.00816.85
7.2.50.0070.00616.77
7.2.40.0050.00916.87
7.2.30.0080.00716.78
7.2.20.0050.01016.86
7.2.10.0070.00816.83
7.2.00.0060.00717.47
7.1.330.0050.01015.84
7.1.320.0060.00715.79
7.1.310.0060.00815.68
7.1.300.0070.00715.72
7.1.290.0040.01015.69
7.1.280.0060.00615.79
7.1.270.0070.00615.73
7.1.260.0060.00715.76
7.1.250.0040.00615.86
7.1.240.0040.00915.76
7.1.230.0050.00915.79
7.1.220.0060.00815.89
7.1.210.0040.00715.79
7.1.200.0060.00515.78
7.1.190.0030.00815.93
7.1.180.0060.00615.68
7.1.170.0070.00615.78
7.1.160.0080.00415.66
7.1.150.0050.00915.88
7.1.140.0070.00515.63
7.1.130.0030.00915.76
7.1.120.0060.00815.93
7.1.110.0070.00715.89
7.1.100.0060.00916.32
7.1.90.0070.00515.84
7.1.80.0040.00915.85
7.1.70.0050.00816.21
7.1.60.0040.01016.57
7.1.50.0070.00816.12
7.1.40.0030.01015.78
7.1.30.0040.00615.85
7.1.20.0050.00515.74
7.1.10.0050.00915.69
7.1.00.0070.02317.45
7.0.330.0040.01015.27
7.0.320.0060.00415.25
7.0.310.0020.01015.38
7.0.300.0030.00915.42
7.0.290.0070.00915.33
7.0.280.0070.00915.38
7.0.270.0010.01115.38
7.0.260.0050.00615.20
7.0.250.0040.00915.21
7.0.240.0080.00815.36
7.0.230.0080.00215.55
7.0.220.0080.00415.53
7.0.210.0030.01015.46
7.0.200.0050.00715.73
7.0.190.0070.00715.37
7.0.180.0040.00715.42
7.0.170.0050.00815.37
7.0.160.0080.00415.34
7.0.150.0040.00915.22
7.0.140.0090.01817.09
7.0.130.0010.01015.39
7.0.120.0030.01015.38
7.0.110.0070.00515.24
7.0.100.0060.02016.61
7.0.90.0070.01916.55
7.0.80.0080.01716.53
7.0.70.0030.02416.45
7.0.60.0040.02116.58
7.0.50.0070.01516.57
7.0.40.0070.02415.19
7.0.30.0070.02315.11
7.0.20.0070.02315.13
7.0.10.0070.01714.94
7.0.00.0080.02414.97
5.6.400.0040.00714.56
5.6.390.0030.01014.29
5.6.380.0040.00814.25
5.6.370.0070.00714.34
5.6.360.0110.00214.08
5.6.350.0070.00814.36
5.6.340.0050.00614.13
5.6.330.0060.00714.17
5.6.320.0070.00714.30
5.6.310.0050.00814.34
5.6.300.0080.00714.30
5.6.290.0030.00814.30
5.6.280.0070.02115.96
5.6.270.0070.00614.11
5.6.260.0030.00914.59
5.6.250.0050.02415.97
5.6.240.0050.01815.88
5.6.230.0050.02615.91
5.6.220.0090.02415.99
5.6.210.0050.02015.78
5.6.200.0070.01716.03
5.6.190.0050.02416.04
5.6.180.0070.02415.86
5.6.170.0120.01516.02
5.6.160.0070.02316.08
5.6.150.0080.02415.85
5.6.140.0050.02315.94
5.6.130.0090.02416.13
5.6.120.0060.01815.92
5.6.110.0030.02816.03
5.6.100.0060.02515.85
5.6.90.0100.02415.99
5.6.80.0080.02515.88
5.6.70.0070.02515.75
5.6.60.0070.01715.82
5.6.50.0040.02615.84
5.6.40.0120.02215.71
5.6.30.0050.02715.74
5.6.20.0120.02015.75
5.6.10.0050.02815.67
5.6.00.0070.02215.75
5.5.380.0080.02115.71
5.5.370.0070.01815.70
5.5.360.0070.02415.72
5.5.350.0030.01915.61
5.5.340.0060.01315.76
5.5.330.0030.02215.74
5.5.320.0050.01815.74
5.5.310.0060.02316.04
5.5.300.0070.02515.77
5.5.290.0080.02315.74
5.5.280.0060.02415.74
5.5.270.0090.02615.84
5.5.260.0060.02115.60
5.5.250.0030.03015.68
5.5.240.0070.02515.72
5.5.230.0060.01915.60
5.5.220.0050.02215.59
5.5.210.0040.01715.56
5.5.200.0060.02815.58
5.5.190.0060.02715.49
5.5.180.0070.02515.62
5.5.170.0070.01014.19
5.5.160.0110.02015.49
5.5.150.0060.01715.55
5.5.140.0090.01915.57
5.5.130.0060.01615.45
5.5.120.0100.01515.61
5.5.110.0080.02615.58
5.5.100.0030.03115.64
5.5.90.0060.02415.56
5.5.80.0100.02315.62
5.5.70.0040.01715.62
5.5.60.0070.01615.57
5.5.50.0070.01715.43
5.5.40.0040.01715.66
5.5.30.0060.01715.74
5.5.20.0060.01815.51
5.5.10.0040.01915.53
5.5.00.0050.01715.39
5.4.450.0070.01313.11
5.4.440.0040.01613.22
5.4.430.0060.02313.27
5.4.420.0060.01313.16
5.4.410.0040.02613.20
5.4.400.0030.01913.06
5.4.390.0060.02313.24
5.4.380.0060.02313.21
5.4.370.0050.02313.10
5.4.360.0040.02313.12
5.4.350.0060.01513.12
5.4.340.0050.02113.18
5.4.330.0040.00511.19
5.4.320.0060.01513.13
5.4.310.0080.02013.21
5.4.300.0050.01813.14
5.4.290.0070.01413.16
5.4.280.0060.01613.19
5.4.270.0060.01613.15
5.4.260.0020.01712.98
5.4.250.0030.01613.03
5.4.240.0060.01913.13
5.4.230.0050.01913.09
5.4.220.0060.01313.08
5.4.210.0060.01313.13
5.4.200.0070.01313.15
5.4.190.0040.01713.07
5.4.180.0050.01413.10
5.4.170.0060.01213.23
5.4.160.0010.01412.94
5.4.150.0050.01413.02
5.4.140.0040.01212.50
5.4.130.0030.01512.43
5.4.120.0050.01112.43
5.4.110.0050.01412.49
5.4.100.0040.01412.45
5.4.90.0030.01612.46
5.4.80.0050.01512.56
5.4.70.0060.01112.44
5.4.60.0040.01412.45
5.4.50.0060.01412.45
5.4.40.0050.01712.55
5.4.30.0030.01512.55
5.4.20.0040.01512.42
5.4.10.0030.01512.38
5.4.00.0020.01512.24
5.3.290.0070.07314.65
5.3.280.0030.04014.41
5.3.270.0100.03314.54
5.3.260.0070.04014.61
5.3.250.0000.03314.59
5.3.240.0030.03714.61
5.3.230.0000.04714.55
5.3.220.0030.03714.47
5.3.210.0000.04714.42
5.3.200.0000.04014.40
5.3.190.0070.03014.55
5.3.180.0030.03714.47
5.3.170.0030.03714.55
5.3.160.0030.05314.47
5.3.150.0030.04314.57
5.3.140.0030.03714.55
5.3.130.0100.02714.36
5.3.120.0000.04314.54
5.3.110.0070.06314.42
5.3.100.0100.03014.02
5.3.90.0070.03013.97
5.3.80.0130.02313.84
5.3.70.0070.03013.97
5.3.60.0170.02313.97
5.3.50.0030.03013.80
5.3.40.0070.02713.73
5.3.30.0000.03713.90
5.3.20.0000.03313.54
5.3.10.0000.03313.61
5.3.00.0070.02713.64
5.2.170.0030.03311.09
5.2.160.0030.02311.00
5.2.150.0070.02710.96
5.2.140.0000.03310.98
5.2.130.0000.03011.09
5.2.120.0030.02710.94
5.2.110.0000.02710.93
5.2.100.0130.01711.15
5.2.90.0030.02710.96
5.2.80.0030.03711.16
5.2.70.0070.02311.01
5.2.60.0030.02711.07
5.2.50.0100.02711.01
5.2.40.0000.03311.04
5.2.30.0030.02710.99
5.2.20.0000.03010.88
5.2.10.0000.03010.78
5.2.00.0000.03010.66
5.1.60.0030.02310.04
5.1.50.0000.0279.82
5.1.40.0030.0209.98
5.1.30.0030.02010.41
5.1.20.0030.04310.35
5.1.10.0030.04310.04
5.1.00.0030.05310.10
5.0.50.0030.0478.55
5.0.40.0030.0378.44
5.0.30.0030.0638.25
5.0.20.0030.0208.19
5.0.10.0100.0408.27
5.0.00.0000.0478.23
4.4.90.0000.0178.09
4.4.80.0000.0138.09
4.4.70.0000.0178.09
4.4.60.0000.0178.09
4.4.50.0000.0208.09
4.4.40.0030.0238.09
4.4.30.0000.0178.09
4.4.20.0000.0178.09
4.4.10.0000.0378.09
4.4.00.0030.0608.09
4.3.110.0030.0478.09
4.3.100.0000.0338.09
4.3.90.0030.0378.09
4.3.80.0100.0508.09
4.3.70.0000.0378.09
4.3.60.0030.0278.09
4.3.50.0030.0378.09
4.3.40.0000.0408.09
4.3.30.0030.0178.09
4.3.20.0000.0278.09
4.3.10.0000.0308.09
4.3.00.0000.0338.09

preferences:
34.45 ms | 403 KiB | 5 Q