3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ "On", "Off" ]; foreach ($tests as $test) { $result = [ "test" => $test, "boolval" => boolval($test), "FILTER_VALIDATE_BOOLEAN" => filter_var($test, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) ]; $result["agreement"] = $result["boolval"] === $result["FILTER_VALIDATE_BOOLEAN"]; echo json_encode($result, JSON_PRETTY_PRINT), "\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.40.0160.00322.21
8.3.30.0040.01118.88
8.3.20.0080.00021.03
8.3.10.0080.00020.16
8.3.00.0050.00322.57
8.2.170.0110.00422.96
8.2.160.0030.01019.29
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.96
8.2.110.0030.00622.08
8.2.100.0060.00617.59
8.2.90.0040.00417.75
8.2.80.0030.00518.96
8.2.70.0030.00517.50
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0040.00418.35
8.2.30.0050.00218.12
8.2.20.0040.00417.99
8.2.10.0000.00719.40
8.2.00.0000.00719.17
8.1.270.0000.00820.75
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0030.00620.25
8.1.230.0090.00317.77
8.1.220.0030.00617.79
8.1.210.0040.00418.77
8.1.200.0100.00017.48
8.1.190.0000.00817.35
8.1.180.0050.00319.41
8.1.170.0060.00318.54
8.1.160.0070.00018.88
8.1.150.0080.00018.88
8.1.140.0080.00018.88
8.1.130.0050.00217.40
8.1.120.0000.00817.46
8.1.110.0000.00817.41
8.1.100.0080.00017.43
8.1.90.0030.00317.37
8.1.80.0000.00917.33
8.1.70.0030.00317.48
8.1.60.0040.00417.61
8.1.50.0000.00817.44
8.1.40.0070.00017.54
8.1.30.0060.00317.66
8.1.20.0080.00017.54
8.1.10.0000.00817.57
8.1.00.0070.00017.39
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0050.00318.44
8.0.270.0000.00718.00
8.0.260.0050.00316.73
8.0.250.0000.00716.88
8.0.240.0000.00716.91
8.0.230.0030.00316.94
8.0.220.0000.00816.80
8.0.210.0030.00316.77
8.0.200.0070.00016.84
8.0.190.0040.00416.84
8.0.180.0040.00816.82
8.0.170.0030.00516.91
8.0.160.0000.00716.78
8.0.150.0050.00216.71
8.0.140.0000.00716.76
8.0.130.0030.00313.36
8.0.120.0000.00816.83
8.0.110.0000.00816.85
8.0.100.0050.00216.84
8.0.90.0040.00416.76
8.0.80.0040.01116.81
8.0.70.0020.00516.97
8.0.60.0030.00616.79
8.0.50.0060.00316.76
8.0.30.0120.00617.20
8.0.20.0120.00717.06
8.0.10.0050.00216.94
8.0.00.0120.00616.83
7.4.330.0020.00215.55
7.4.320.0030.00316.42
7.4.300.0060.00016.58
7.4.290.0040.00416.55
7.4.280.0090.00016.50
7.4.270.0040.00416.48
7.4.260.0020.00516.41
7.4.250.0070.00016.32
7.4.240.0040.00416.62
7.4.230.0070.00016.50
7.4.220.0050.00216.62
7.4.210.0030.01216.55
7.4.200.0070.00016.44
7.4.130.0090.01116.47
7.4.120.0060.01216.66
7.4.110.0110.00616.47
7.4.100.0090.01116.69
7.4.90.0100.01016.34
7.4.80.0090.00919.39
7.4.70.0100.00716.51
7.4.60.0060.00916.44
7.4.50.0000.01316.40
7.4.40.0090.00916.52
7.4.30.0100.00816.38
7.4.20.0110.00816.40
7.4.10.0090.00916.33
7.4.00.0080.01116.57
7.3.330.0030.00316.23
7.3.320.0030.00313.26
7.3.310.0000.00716.19
7.3.300.0070.00016.30
7.3.290.0090.00916.36
7.3.260.0100.01316.48
7.3.240.0100.00716.55
7.3.230.0130.00316.35
7.3.210.0120.00316.60
7.3.200.0100.00716.39
7.3.190.0110.01116.25
7.3.180.0090.00616.45
7.3.170.0060.00916.42
7.3.160.0110.00716.26
7.3.150.0100.01016.44
7.3.140.0110.00616.33
7.3.130.0110.00716.31
7.3.120.0070.01116.36
7.3.110.0110.01016.35
7.3.100.0110.01016.51
7.3.90.0110.00916.31
7.3.80.0110.00916.38
7.3.70.0080.01016.29
7.3.60.0100.01016.34
7.3.50.0060.01216.32
7.3.40.0100.01116.37
7.3.30.0080.01016.38
7.3.20.0090.00916.39
7.3.10.0090.01016.38
7.3.00.0050.01516.40
7.2.330.0040.01416.74
7.2.320.0060.01016.46
7.2.310.0080.00816.59
7.2.300.0050.01916.48
7.2.290.0070.01016.58
7.2.280.0120.00716.68
7.2.270.0080.01016.66
7.2.260.0090.01016.53
7.2.250.0050.01516.74
7.2.240.0100.01016.69
7.2.230.0110.01016.50
7.2.220.0150.00616.65
7.2.210.0080.01216.46
7.2.200.0080.01016.65
7.2.190.0090.01216.61
7.2.180.0080.01116.61
7.2.170.0090.00816.59
7.2.160.0060.01316.59
7.2.150.0130.00516.67
7.2.140.0110.00816.67
7.2.130.0060.01316.65
7.2.120.0150.00916.68
7.2.110.0090.00916.66
7.2.100.0140.00716.71
7.2.90.0110.00816.69
7.2.80.0090.01116.67
7.2.70.0110.00816.62
7.2.60.0110.00816.65
7.2.50.0120.00816.62
7.2.40.0100.01116.63
7.2.30.0140.00516.69
7.2.20.0110.00916.61
7.2.10.0110.00816.64
7.2.00.0210.00716.60
7.1.330.0200.00715.63
7.1.320.0200.01015.61
7.1.310.0200.00815.48
7.1.300.0110.01915.45
7.1.290.0130.01515.38
7.1.280.0190.01015.46
7.1.270.0170.00915.46
7.1.260.0220.01715.51
7.1.250.0210.00815.56
7.1.240.0140.01515.62
7.1.230.0200.01115.66
7.1.220.0200.00815.45
7.1.210.0160.01315.52
7.1.200.0160.01615.57
7.1.190.0210.00715.52
7.1.180.0200.01015.43
7.1.170.0230.00915.64
7.1.160.0150.01415.51
7.1.150.0200.00615.62
7.1.140.0150.01215.54
7.1.130.0150.01515.64
7.1.120.0210.00915.70
7.1.110.0230.00815.48
7.1.100.0120.01615.43
7.1.90.0220.00515.61
7.1.80.0180.00815.51
7.1.70.0200.00715.59
7.1.60.0410.00715.69
7.1.50.0190.00915.59
7.1.40.0100.01715.69
7.1.30.0170.01015.45
7.1.20.0210.01315.66
7.1.10.0180.01015.55
7.1.00.0300.00015.52
7.0.330.0270.00015.09
7.0.320.0170.01015.20
7.0.310.0410.00615.13
7.0.300.0290.00115.52
7.0.290.0170.01115.17
7.0.280.0200.00715.21
7.0.270.0210.00415.04
7.0.260.0200.01015.35
7.0.250.0060.01915.29
7.0.240.0210.00615.31
7.0.230.0170.01415.18
7.0.220.0150.00915.43
7.0.210.0140.01015.25
7.0.200.0200.00615.30
7.0.190.0160.00915.36
7.0.180.0300.00615.30
7.0.170.0150.01115.34
7.0.160.0170.00815.32
7.0.150.0280.00715.22
7.0.140.0180.00915.19
7.0.130.0140.00915.24
7.0.120.0190.00815.16
7.0.110.0090.01815.24
7.0.100.0180.00715.21
7.0.90.0190.01015.24
7.0.80.0190.01115.20
7.0.70.0220.00615.17
7.0.60.0200.01315.17
7.0.50.0200.00615.15
7.0.40.0140.01315.01
7.0.30.0150.01415.22
7.0.20.0070.01415.28
7.0.10.0400.01015.20
7.0.00.0210.00414.98
5.6.400.0330.00416.26
5.6.390.0190.01316.09
5.6.380.0190.01515.85
5.6.370.0100.01716.02
5.6.360.0240.00716.09
5.6.350.0310.00416.15
5.6.340.0170.01615.80
5.6.330.0190.00815.92
5.6.320.0180.00816.13
5.6.310.0180.01216.26
5.6.300.0190.01016.00
5.6.290.0120.01516.23
5.6.280.0160.01516.02
5.6.270.0180.01415.79
5.6.260.0220.00715.70
5.6.250.0190.01315.89
5.6.240.0140.02315.84
5.6.230.0120.00815.80
5.6.220.0160.01315.82
5.6.210.0260.00215.86
5.6.200.0140.01416.15
5.6.190.0120.01815.73
5.6.180.0100.01715.82
5.6.170.0140.01215.87
5.6.160.0170.01415.71
5.6.150.0150.01416.09
5.6.140.0180.00915.93
5.6.130.0190.01315.91
5.6.120.0230.01115.66
5.6.110.0200.00916.09
5.6.100.0150.01315.77
5.6.90.0240.00515.80
5.6.80.0070.01815.70
5.6.70.0190.01215.89
5.6.60.0120.01215.72
5.6.50.0140.01415.84
5.6.40.0160.01315.60
5.6.30.0150.01316.00
5.6.20.0140.01515.83
5.6.10.0070.01815.63
5.6.00.0160.01015.80
5.5.380.0090.01815.98
5.5.370.0160.01315.84
5.5.360.0220.00815.69
5.5.350.0120.01715.95
5.5.340.0080.01815.68
5.5.330.0180.00915.80
5.5.320.0120.01516.09
5.5.310.0170.00915.86
5.5.300.0060.02216.07
5.5.290.0140.01416.15
5.5.280.0110.01415.95
5.5.270.0120.01415.95
5.5.260.0110.01416.02
5.5.250.0190.00915.76
5.5.240.0070.01415.82
5.5.230.0050.01915.61
5.5.220.0160.00815.88
5.5.210.0080.01715.72
5.5.200.0150.01115.90
5.5.190.0090.02015.75
5.5.180.0070.01815.86
5.5.170.0070.01515.46
5.5.160.0190.01115.73
5.5.150.0050.01615.93
5.5.140.0070.01616.02
5.5.130.0140.00716.05
5.5.120.0090.01615.99
5.5.110.0030.01915.98
5.5.100.0140.01415.61
5.5.90.0220.00615.80
5.5.80.0120.01315.69
5.5.70.0100.01715.72
5.5.60.0170.00816.06
5.5.50.0100.01715.93
5.5.40.0120.01215.62
5.5.30.0110.01215.73
5.5.20.0090.01615.96
5.5.10.0120.01115.64
5.5.00.0140.01415.56
5.4.450.0170.00912.26
5.4.440.0160.00612.52
5.4.430.0170.00712.57
5.4.420.0160.00712.46
5.4.410.0090.00912.51
5.4.400.0170.00512.54
5.4.390.0130.00812.41
5.4.380.0140.01012.37
5.4.370.0100.01012.45
5.4.360.0150.00712.42
5.4.350.0140.01112.53
5.4.340.0140.00612.68
5.4.330.0070.01312.49
5.4.320.0220.00312.41
5.4.310.0130.00712.32
5.4.300.0150.00612.55
5.4.290.0110.01212.65
5.4.280.0200.00312.68
5.4.270.0180.00512.50
5.4.260.0130.01112.49
5.4.250.0090.01212.54
5.4.240.0110.01112.34
5.4.230.0210.00312.38
5.4.220.0050.01512.36
5.4.210.0140.01012.60
5.4.200.0130.00912.58
5.4.190.0080.01312.38
5.4.180.0160.00712.31
5.4.170.0130.01212.53
5.4.160.0130.00512.12
5.4.150.0100.01211.95
5.4.140.0100.01012.11
5.4.130.0110.00912.41
5.4.120.0180.00312.39
5.4.110.0090.01212.38
5.4.100.0100.00512.38
5.4.90.0120.00712.43
5.4.80.0100.01012.43
5.4.70.0110.00812.38
5.4.60.0120.00812.40
5.4.50.0160.00312.29
5.4.40.0170.00512.29
5.4.30.0050.00212.30
5.4.20.0120.00812.43
5.4.10.0190.00312.39
5.4.00.0070.01112.36
5.3.290.0110.01012.77
5.3.280.0180.00412.72
5.3.270.0140.01112.70
5.3.260.0130.01012.74
5.3.250.0190.00612.68
5.3.240.0120.01212.45
5.3.230.0130.01012.60
5.3.220.0120.01212.87
5.3.210.0120.01212.57
5.3.200.0120.00912.76
5.3.190.0100.01312.78
5.3.180.0180.00712.82
5.3.170.0170.00712.72
5.3.160.0130.01112.81
5.3.150.0100.01612.93
5.3.140.0090.01312.73
5.3.130.0140.01012.84
5.3.120.0110.01112.71
5.3.110.0080.01212.77
5.3.100.0160.01112.83
5.3.90.0140.00712.78
5.3.80.0150.00712.70
5.3.70.0130.00712.70
5.3.60.0230.00312.81
5.3.50.0100.01012.64
5.3.40.0080.00812.56
5.3.30.0080.01112.90
5.3.20.0000.01712.89
5.3.10.0090.01312.54
5.3.00.0080.01312.50
5.2.170.0040.01211.79
5.2.160.0090.00611.80
5.2.150.0070.01111.86
5.2.140.0170.00011.68
5.2.130.0110.01111.79
5.2.120.0160.00511.65
5.2.110.0030.01711.71
5.2.100.0070.01111.80
5.2.90.0100.00711.79
5.2.80.0130.00711.66
5.2.70.0080.00811.66
5.2.60.0130.00611.53
5.2.50.0030.01411.70
5.2.40.0160.00311.68
5.2.30.0060.01311.67
5.2.20.0110.00811.57
5.2.10.0070.00711.72
5.2.00.0090.01211.43
5.1.60.0080.01111.37
5.1.50.0110.00711.37
5.1.40.0040.01411.37
5.1.30.0120.00511.37
5.1.20.0080.00811.37
5.1.10.0130.00011.37
5.1.00.0090.00911.37
5.0.50.0040.00911.37
5.0.40.0110.00011.37
5.0.30.0090.00411.37
5.0.20.0140.00011.37
5.0.10.0040.01211.37
5.0.00.0100.00311.37
4.4.90.0030.00711.37
4.4.80.0050.00511.37
4.4.70.0030.00711.37
4.4.60.0070.00011.37
4.4.50.0080.00011.37
4.4.40.0040.00611.37
4.4.30.0030.00711.37
4.4.20.0060.00311.37
4.4.10.0060.00211.37
4.4.00.0000.00811.37
4.3.110.0070.00011.37
4.3.100.0040.00411.37
4.3.90.0100.00011.37
4.3.80.0040.00311.37
4.3.70.0070.00011.37
4.3.60.0060.00311.37
4.3.50.0070.00211.37
4.3.40.0030.00611.37
4.3.30.0030.00611.37
4.3.20.0040.00411.37
4.3.10.0070.00011.37
4.3.00.0040.00311.37

preferences:
67.14 ms | 400 KiB | 5 Q