3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((bool) ""); // bool(false) var_dump((bool) 1); // bool(true) var_dump((bool) -2); // bool(true) var_dump((bool) "foo"); // bool(true) var_dump((bool) 2.3e5); // bool(true) var_dump((bool) array(12)); // bool(true) var_dump((bool) array()); // bool(false) var_dump((bool) "false"); // bool(true)

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.0.30.0180.00616.68
8.0.20.0210.00716.77
8.0.10.0140.01516.87
8.0.00.0200.00916.81
7.4.160.0170.00516.30
7.4.150.0200.00916.33
7.4.140.0190.00816.15
7.4.130.0200.00516.17
7.4.120.0150.00916.20
7.4.110.0180.00916.24
7.4.100.0190.00716.26
7.4.90.0170.01116.30
7.4.80.0180.00816.10
7.4.70.0170.00916.17
7.4.60.0160.00916.25
7.4.50.0200.00716.11
7.4.40.0150.01216.20
7.4.30.0180.01016.11
7.4.20.0170.01016.14
7.4.10.0240.00416.13
7.4.00.0080.01116.14
7.3.280.0210.01016.08
7.3.270.0200.00816.02
7.3.260.0210.00716.18
7.3.250.0230.00816.08
7.3.240.0140.01116.16
7.3.230.0250.00316.13
7.3.220.0210.00816.11
7.3.210.0220.00716.04
7.3.200.0160.01216.06
7.3.190.0160.01216.10
7.3.180.0150.01316.03
7.3.170.0220.00916.06
7.3.160.0230.00516.03
7.3.150.0210.00716.11
7.3.140.0180.01016.05
7.3.130.0180.01016.05
7.3.120.0240.00916.10
7.3.110.0190.01116.01
7.3.100.0180.01116.04
7.3.90.0150.01316.32
7.3.80.0160.01116.11
7.3.70.0180.01116.05
7.3.60.0220.01116.15
7.3.50.0180.01116.16
7.3.40.0170.00916.14
7.3.30.0160.00816.16
7.3.20.0150.01016.20
7.3.10.0190.00716.11
7.3.00.0160.01116.07
7.2.340.0260.00816.09
7.2.330.0120.01716.13
7.2.320.0230.00816.11
7.2.310.0190.00516.08
7.2.300.0130.01316.13
7.2.290.0270.00616.14
7.2.280.0200.00416.08
7.2.270.0180.01116.08
7.2.260.0180.00716.02
7.2.250.0280.00716.05
7.2.240.0130.01315.98
7.2.230.0160.01316.09
7.2.220.0130.01316.16
7.2.210.0220.00816.03
7.2.200.0200.00916.16
7.2.190.0190.01016.18
7.2.180.0180.01116.16
7.2.170.0150.01616.27
7.2.160.0210.00916.27
7.2.150.0250.00616.27
7.2.140.0200.00616.31
7.2.130.0270.00816.45
7.2.120.0240.00616.37
7.2.110.0230.00716.43
7.2.100.0130.01316.33
7.2.90.0200.00816.24
7.2.80.0160.01116.27
7.2.70.0140.01116.32
7.2.60.0260.00016.25
7.2.50.0210.01016.27
7.2.40.0270.00316.28
7.2.30.0230.00716.32
7.2.20.0180.00716.35
7.2.10.0200.00716.29
7.2.00.0190.00616.36
7.1.330.0190.00615.14
7.1.320.0140.01315.15
7.1.310.0140.00815.27
7.1.300.0090.01715.25
7.1.290.0170.01015.33
7.1.280.0160.01115.45
7.1.270.0160.01115.41
7.1.260.0260.00615.32
7.1.250.0050.01815.12
7.1.240.0180.00915.31
7.1.230.0180.00615.38
7.1.220.0150.00815.24
7.1.210.0220.00515.25
7.1.200.0100.01715.32
7.1.190.0130.01715.24
7.1.180.0150.00915.18
7.1.170.0200.00615.38
7.1.160.0200.00315.25
7.1.150.0100.01415.18
7.1.140.0190.00615.21
7.1.130.0190.00415.18
7.1.120.0110.01215.16
7.1.110.0180.00415.27
7.1.100.0110.01115.23
7.1.90.0180.00715.30
7.1.80.0230.00015.25
7.1.70.0280.01115.14
7.1.60.0200.00315.25
7.1.50.0200.00315.29
7.1.40.0140.00815.33
7.1.30.0140.01015.32
7.1.20.0170.00715.11
7.1.10.0190.00515.14
7.1.00.0230.00315.12
7.0.330.0130.01015.09
7.0.320.0130.01014.92
7.0.310.0180.00414.83
7.0.300.0190.00314.88
7.0.290.0080.01614.89
7.0.280.0240.00714.99
7.0.270.0210.00814.96
7.0.260.0200.00814.95
7.0.250.0220.00415.06
7.0.240.0240.00014.97
7.0.230.0180.00614.98
7.0.220.0100.01614.96
7.0.210.0280.01014.88
7.0.200.0190.00615.07
7.0.190.0070.01815.03
7.0.180.0170.00614.87
7.0.170.0130.00815.13
7.0.160.0160.00714.93
7.0.150.0080.01515.04
7.0.140.0150.00714.94
7.0.130.0120.01115.09
7.0.120.0210.00314.98
7.0.110.0190.00814.97
7.0.100.0160.00915.04
7.0.90.0180.00814.83
7.0.80.0200.00314.87
7.0.70.0130.01014.90
7.0.60.0220.00414.95
7.0.50.0150.00814.98
7.0.40.0220.00015.01
7.0.30.0190.00615.05
7.0.20.0170.01214.91
7.0.10.0310.00614.95
7.0.00.0190.00714.94
5.6.400.0100.01315.48
5.6.390.0100.01515.66
5.6.380.0230.01015.54
5.6.370.0130.01215.46
5.6.360.0160.00815.51
5.6.350.0150.00915.54
5.6.340.0130.01215.56
5.6.330.0140.01115.45
5.6.320.0090.01415.45
5.6.310.0210.00415.44
5.6.300.0150.00915.50
5.6.290.0200.00415.64
5.6.280.0160.01115.52
5.6.270.0190.00415.59
5.6.260.0120.01315.68
5.6.250.0200.00315.52
5.6.240.0160.01315.70
5.6.230.0180.00515.68
5.6.220.0180.00515.67
5.6.210.0120.01215.64
5.6.200.0210.00715.71
5.6.190.0190.00715.86
5.6.180.0130.01015.57
5.6.170.0130.00915.67
5.6.160.0250.00415.74
5.6.150.0190.00815.81
5.6.140.0200.00715.58
5.6.130.0290.00015.63
5.6.120.0210.00415.66
5.6.110.0170.00715.66
5.6.100.0150.00915.61
5.6.90.0160.00815.49
5.6.80.0170.00715.45
5.6.70.0160.01115.74
5.6.60.0170.00515.63
5.6.50.0200.00615.61
5.6.40.0160.01015.51
5.6.30.0100.01315.61
5.6.20.0200.00315.59
5.6.10.0130.01015.44
5.6.00.0160.00815.66
5.5.380.0210.00415.87
5.5.370.0180.00815.71
5.5.360.0160.01615.46
5.5.350.0130.01315.52
5.5.340.0150.01215.50
5.5.330.0150.00915.51
5.5.320.0230.00015.33
5.5.310.0190.00315.61
5.5.300.0210.00315.35
5.5.290.0220.00015.51
5.5.280.0120.01215.35
5.5.270.0190.00615.42
5.5.260.0220.01015.37
5.5.250.0240.00515.52
5.5.240.0160.01115.77
5.5.230.0140.01415.54
5.5.220.0140.00915.46
5.5.210.0110.01115.72
5.5.200.0110.01515.44
5.5.190.0110.01115.54
5.5.180.0240.00515.41
5.5.170.0140.01415.41
5.5.160.0170.01015.41
5.5.150.0140.01415.25
5.5.140.0230.00015.18
5.5.130.0160.00515.19
5.5.120.0180.01215.19
5.5.110.0180.00315.45
5.5.100.0190.00615.48
5.5.90.0140.01115.56
5.5.80.0180.00415.68
5.5.70.0140.01115.41
5.5.60.0150.00915.38
5.5.50.0180.01215.50
5.5.40.0120.00915.50
5.5.30.0130.01015.71
5.5.20.0220.00315.71
5.5.10.0100.01415.47
5.5.00.0170.00415.50
5.4.450.0140.00612.47
5.4.440.0110.00712.48
5.4.430.0140.00712.44
5.4.420.0160.00412.48
5.4.410.0170.00612.38
5.4.400.0130.00612.33
5.4.390.0170.00312.30
5.4.380.0140.00412.45
5.4.370.0180.00012.30
5.4.360.0230.00312.45
5.4.350.0110.01112.32
5.4.340.0100.00712.32
5.4.330.0180.00012.24
5.4.320.0160.00812.42
5.4.310.0130.00612.40
5.4.300.0140.00312.39
5.4.290.0150.00312.40
5.4.280.0160.00312.44
5.4.270.0100.01012.44
5.4.260.0170.00012.25
5.4.250.0180.00712.34
5.4.240.0070.01412.34
5.4.230.0190.00012.11
5.4.220.0170.00012.27
5.4.210.0170.00712.09
5.4.200.0110.00712.15
5.4.190.0140.00312.11
5.4.180.0090.00912.08
5.4.170.0080.01212.14
5.4.160.0070.01012.18
5.4.150.0170.00012.19
5.4.140.0080.00812.29
5.4.130.0130.00312.38
5.4.120.0190.00012.43
5.4.110.0170.00012.30
5.4.100.0110.00712.35
5.4.90.0050.01112.40
5.4.80.0060.01012.46
5.4.70.0170.00012.45
5.4.60.0080.00812.39
5.4.50.0150.00312.30
5.4.40.0130.00312.32
5.4.30.0110.00512.41
5.4.20.0050.01012.43
5.4.10.0160.00012.41
5.4.00.0090.01012.18
5.3.290.0150.00412.93
5.3.280.0130.00612.86
5.3.270.0110.01112.77
5.3.260.0120.00812.92
5.3.250.0090.00912.78
5.3.240.0040.01312.83
5.3.230.0100.00712.75
5.3.220.0190.00212.77
5.3.210.0120.00612.72
5.3.200.0130.00712.58
5.3.190.0130.00712.60
5.3.180.0110.00712.87
5.3.170.0130.00712.92
5.3.160.0140.00712.86
5.3.150.0130.00512.73
5.3.140.0120.00912.73
5.3.130.0210.00012.81
5.3.120.0120.00912.75
5.3.110.0100.00713.00
5.3.100.0150.00312.91
5.3.90.0160.00412.81
5.3.80.0180.00512.53
5.3.70.0120.00812.68
5.3.60.0150.00412.75
5.3.50.0170.00612.77
5.3.40.0100.01012.73
5.3.30.0130.00812.69
5.3.20.0140.00712.66
5.3.10.0190.00612.72
5.3.00.0190.00412.63
5.2.170.0140.00411.81
5.2.160.0070.01112.07
5.2.150.0170.00311.89
5.2.140.0040.01611.93
5.2.130.0200.00411.79
5.2.120.0000.01611.86
5.2.110.0150.00711.79
5.2.100.0140.00511.73
5.2.90.0150.00311.76
5.2.80.0150.00511.56
5.2.70.0100.00611.66
5.2.60.0050.01511.66
5.2.50.0080.00911.65
5.2.40.0110.00611.69
5.2.30.0150.00311.63
5.2.20.0080.00811.62
5.2.10.0100.01011.57
5.2.00.0040.01311.42
5.1.60.0120.00910.74
5.1.50.0070.00710.77
5.1.40.0140.00210.99
5.1.30.0060.00911.02
5.1.20.0130.00310.99
5.1.10.0090.00610.92
5.1.00.0120.00410.75
5.0.50.0110.0009.96
5.0.40.0070.0079.89
5.0.30.0070.0089.70
5.0.20.0100.0049.77
5.0.10.0040.0099.63
5.0.00.0080.0059.63
4.4.90.0060.0038.57
4.4.80.0040.0078.57
4.4.70.0090.0008.57
4.4.60.0070.0028.57
4.4.50.0000.0088.57
4.4.40.0110.0008.57
4.4.30.0040.0078.57
4.4.20.0040.0078.57
4.4.10.0050.0038.57
4.4.00.0000.0088.57
4.3.110.0070.0008.57
4.3.100.0060.0038.57
4.3.90.0060.0028.57
4.3.80.0050.0058.57
4.3.70.0060.0038.57
4.3.60.0000.0088.57
4.3.50.0040.0048.57
4.3.40.0040.0048.57
4.3.30.0030.0038.57
4.3.20.0040.0028.57
4.3.10.0060.0008.57
4.3.00.0100.0008.57