3v4l.org

run code in 300+ PHP versions simultaneously
<?php $required = array('my', 'cat'); if (!is_null($required) && !is_array($required)) { throw new Exception('The names of required fields must be an array, even if only one field is required.'); } else { echo "The if clause was not run"; }

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.0060.01218.31
8.3.50.0120.00621.15
8.3.40.0090.00618.67
8.3.30.0130.00320.21
8.3.20.0060.00320.22
8.3.10.0040.00421.92
8.3.00.0050.00322.50
8.2.180.0140.00716.75
8.2.170.0070.00722.96
8.2.160.0100.00322.25
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00717.63
8.2.110.0060.00319.34
8.2.100.0040.00817.84
8.2.90.0040.00419.22
8.2.80.0000.00819.24
8.2.70.0040.00417.63
8.2.60.0000.01118.04
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0040.00718.04
8.2.20.0000.00817.55
8.2.10.0000.00817.59
8.2.00.0030.00617.54
8.1.280.0140.00025.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.66
8.1.230.0040.00719.16
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0070.00417.36
8.1.190.0040.00417.52
8.1.180.0050.00318.10
8.1.170.0040.00418.48
8.1.160.0050.00320.67
8.1.150.0000.00818.63
8.1.140.0050.00217.45
8.1.130.0000.00717.81
8.1.120.0040.00417.50
8.1.110.0000.00717.48
8.1.100.0040.00417.48
8.1.90.0000.00717.40
8.1.80.0030.00317.41
8.1.70.0030.00317.47
8.1.60.0030.00517.50
8.1.50.0080.00017.47
8.1.40.0040.00417.55
8.1.30.0040.00417.60
8.1.20.0000.00817.65
8.1.10.0020.00517.33
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0040.00418.46
8.0.270.0030.00317.31
8.0.260.0030.00316.71
8.0.250.0040.00416.95
8.0.240.0040.00416.96
8.0.230.0000.00716.89
8.0.220.0000.00816.94
8.0.210.0060.00316.88
8.0.200.0040.00416.88
8.0.190.0080.00016.81
8.0.180.0040.00416.80
8.0.170.0040.00416.86
8.0.160.0030.00316.87
8.0.150.0040.00416.84
8.0.140.0040.00416.86
8.0.130.0000.00813.35
8.0.120.0040.00416.82
8.0.110.0040.00416.89
8.0.100.0000.00716.75
8.0.90.0070.00016.71
8.0.80.0140.00616.82
8.0.70.0000.00716.79
8.0.60.0070.00016.99
8.0.50.0000.00716.93
8.0.30.0080.01017.12
8.0.20.0070.01017.40
8.0.10.0000.00717.00
8.0.00.0090.01216.78
7.4.330.0000.00515.14
7.4.320.0060.00016.39
7.4.300.0070.00016.56
7.4.290.0000.00716.57
7.4.280.0000.00716.43
7.4.270.0030.00316.51
7.4.260.0040.00416.38
7.4.250.0030.00516.55
7.4.240.0030.00416.50
7.4.230.0050.00216.30
7.4.220.0090.00916.65
7.4.210.0060.01016.53
7.4.200.0080.00016.68
7.4.190.0040.00416.41
7.4.160.0100.00616.46
7.4.150.0100.00717.40
7.4.140.0110.01117.86
7.4.130.0080.00916.36
7.4.120.0080.00816.51
7.4.110.0130.00616.61
7.4.100.0110.01116.52
7.4.90.0120.00816.40
7.4.80.0060.01419.39
7.4.70.0110.00516.54
7.4.60.0000.01716.41
7.4.50.0040.00416.39
7.4.40.0040.01422.77
7.4.30.0090.00616.39
7.4.00.0050.01414.65
7.3.330.0000.00512.98
7.3.320.0060.00012.99
7.3.310.0000.00716.14
7.3.300.0070.00016.12
7.3.290.0100.00316.13
7.3.280.0080.01016.14
7.3.270.0060.01117.40
7.3.260.0090.01516.44
7.3.250.0110.00616.30
7.3.240.0100.01016.44
7.3.230.0100.00616.39
7.3.210.0090.00916.30
7.3.200.0110.00519.39
7.3.190.0100.00616.17
7.3.180.0060.00916.24
7.3.170.0070.01116.43
7.3.160.0060.01016.34
7.3.120.0080.00814.88
7.3.110.0090.00714.91
7.3.100.0040.00814.78
7.3.90.0120.00314.89
7.3.80.0090.00914.67
7.3.70.0070.00414.80
7.3.60.0040.00714.66
7.3.50.0120.00314.59
7.3.40.0070.01014.70
7.3.30.0030.00914.58
7.3.20.0000.01216.37
7.3.10.0030.01116.32
7.3.00.0080.00516.42
7.2.330.0120.00616.28
7.2.320.0080.01116.65
7.2.310.0130.00316.38
7.2.300.0000.01616.30
7.2.290.0030.01216.25
7.2.250.0130.00714.92
7.2.240.0030.01714.91
7.2.230.0070.00315.09
7.2.220.0100.00015.12
7.2.210.0070.01014.98
7.2.200.0070.00714.98
7.2.190.0040.01114.93
7.2.180.0100.00715.11
7.2.170.0000.00914.96
7.2.130.0150.00616.39
7.2.120.0100.00316.69
7.2.110.0030.00916.55
7.2.100.0030.00716.20
7.2.90.0070.00716.61
7.2.80.0080.00516.50
7.2.70.0000.01116.45
7.2.60.0120.00916.48
7.2.50.0080.00816.61
7.2.40.0160.00416.58
7.2.30.0000.01216.61
7.2.20.0210.00016.73
7.2.10.0070.00716.53
7.2.00.0020.00917.99
7.1.330.0000.01815.72
7.1.320.0070.00715.67
7.1.310.0070.01015.61
7.1.300.0060.00915.93
7.1.290.0040.01115.50
7.1.280.0130.00315.89
7.1.270.0090.00615.74
7.1.260.0090.00615.70
7.1.250.0120.00615.59
7.1.200.0090.00315.69
7.1.100.0000.00818.12
7.1.70.0080.00017.07
7.1.60.0030.02219.32
7.1.50.0170.01734.69
7.1.00.0030.04322.45
7.0.200.0000.00916.70
7.0.140.0030.07021.98
7.0.60.0370.08019.92
7.0.50.0030.05317.91
7.0.40.0100.08720.20
7.0.30.0230.04020.33
7.0.20.0170.04020.04
7.0.10.0030.06320.18
7.0.00.0100.05020.16
5.6.280.0100.07021.06
5.6.210.0100.07720.70
5.6.200.0030.05318.23
5.6.190.0100.07720.46
5.6.180.0200.04020.68
5.6.170.0330.04720.50
5.6.160.0030.05020.50
5.6.150.0070.08018.12
5.6.140.0030.08318.16
5.6.130.0200.07318.11
5.6.120.0070.05321.09
5.6.110.0030.08721.01
5.6.100.0000.04321.08
5.6.90.0070.07721.09
5.6.80.0000.08020.43
5.5.350.3970.03320.46
5.5.340.0070.08318.04
5.5.330.0070.08720.57
5.5.320.0230.04320.34
5.5.310.0230.08020.50
5.5.300.0100.07317.89
5.5.290.0030.08017.91
5.5.280.0030.04320.76
5.5.270.0170.04720.67
5.5.260.0070.09320.95
5.5.250.0030.09020.77
5.5.240.0100.07020.12
5.4.450.3830.04319.40
5.4.440.0070.04719.20
5.4.430.1500.03719.45
5.4.420.3870.04019.36
5.4.410.3830.04019.11
5.4.400.3700.04019.16
5.4.390.3100.05319.00
5.4.380.4370.03319.08
5.4.370.3830.03718.92
5.4.360.3870.03719.00
5.4.350.3670.02719.14
5.4.340.3330.04319.12
5.4.320.3700.03018.89
5.4.310.3770.04019.13
5.4.300.3870.04319.00
5.4.290.3900.03719.04
5.4.280.3970.03319.14
5.4.270.3830.04019.15
5.4.260.3930.03319.23
5.4.250.3870.03319.14
5.4.240.3300.04019.14
5.4.230.3900.03019.14
5.4.220.3700.03719.05
5.4.210.4130.03319.15
5.4.200.4170.04319.15
5.4.190.3730.03319.17
5.4.180.3630.03719.03
5.4.170.4000.03319.05
5.4.160.3930.03718.91
5.4.150.3800.04319.15
5.4.140.3830.03716.32
5.4.130.4300.04316.25
5.4.120.3930.03016.22
5.4.110.3730.03716.46
5.4.100.3600.04016.39
5.4.90.3930.03716.13
5.4.80.3770.03316.30
5.4.70.4270.04016.36
5.4.60.3470.03316.21
5.4.50.3600.03316.13
5.4.40.3900.03716.30
5.4.30.3900.03716.23
5.4.20.3930.03316.32
5.4.10.3600.03716.45
5.4.00.3670.03715.89
5.3.290.3870.04714.59
5.3.280.3670.03314.68
5.3.270.3830.04014.50
5.3.260.3870.03314.53
5.3.250.3870.04014.53
5.3.240.3770.03014.54
5.3.230.3630.04014.60
5.3.220.3930.03714.54
5.3.210.3870.03714.48
5.3.200.3900.04014.53
5.3.190.3830.03714.48
5.3.180.3170.04314.50
5.3.170.3870.03714.50
5.3.160.3730.03314.66
5.3.150.3630.03714.48
5.3.140.3470.04014.48
5.3.130.3470.04314.42
5.3.120.3330.03714.48
5.3.110.3800.04314.51
5.3.100.4000.03013.96
5.3.90.3570.03713.91
5.3.80.3670.03713.99
5.3.70.3630.03313.86
5.3.60.3930.03313.93
5.3.50.0630.04013.91
5.3.40.0070.07314.04
5.3.30.4670.03013.83
5.3.20.4570.04013.61
5.3.10.3870.03013.44
5.3.00.3100.03313.57
5.2.170.0100.03011.22
5.2.160.0000.03310.96
5.2.150.3830.02311.11
5.2.140.3770.03011.02
5.2.130.3670.03011.03
5.2.120.3000.03011.04
5.2.110.3300.02711.12
5.2.100.3300.03011.26
5.2.90.2830.02711.13
5.2.80.2970.03011.10
5.2.70.2870.03311.06
5.2.60.3470.03710.93
5.2.50.3300.03010.95
5.2.40.2830.03310.93
5.2.30.2600.03010.93
5.2.20.2670.02710.86
5.2.10.2630.03010.86
5.2.00.3570.02010.70
5.1.60.2600.0309.98
5.1.50.2570.0279.96
5.1.40.2930.0309.97
5.1.30.2870.03010.48
5.1.20.2800.02710.34
5.1.10.3000.02710.04
5.1.00.3070.02310.21
5.0.50.1670.0208.56
5.0.40.1430.0178.48
5.0.30.1470.0308.21
5.0.20.1570.0208.24
5.0.10.1070.0208.16
5.0.00.1230.0308.12
4.4.90.1400.0206.25
4.4.80.1530.0136.25
4.4.70.1270.0176.25
4.4.60.1530.0176.25
4.4.50.1170.0176.25
4.4.40.1370.0206.25
4.4.30.1430.0176.25
4.4.20.1530.0176.25
4.4.10.1600.0176.25
4.4.00.1630.0276.25
4.3.110.1430.0136.25
4.3.100.1700.0176.25
4.3.90.1500.0136.25
4.3.80.1230.0236.25
4.3.70.1200.0176.25
4.3.60.0970.0136.25
4.3.50.1270.0136.25
4.3.40.1230.0236.25
4.3.30.0200.0136.25
4.3.20.0670.0176.25
4.3.10.0630.0176.25
4.3.00.0630.0136.25

preferences:
38.47 ms | 401 KiB | 5 Q