3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foobar { public function foo($bar) { return in_array('foobar', $bar); } } $foobar = new Foobar; echo $foobar->foo(['foobar']);

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.70.0090.00616.58
8.3.60.0070.00718.43
8.3.50.0130.00722.99
8.3.40.0110.00418.71
8.3.30.0140.00019.09
8.3.20.0040.00420.31
8.3.10.0080.00023.65
8.3.00.0040.00419.13
8.2.180.0160.00016.63
8.2.170.0110.00422.96
8.2.160.0140.00720.39
8.2.150.0110.01124.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0070.00020.83
8.2.110.0060.00320.28
8.2.100.0080.00417.65
8.2.90.0030.00519.09
8.2.80.0000.00917.97
8.2.70.0040.00417.63
8.2.60.0030.00517.92
8.2.50.0030.00618.07
8.2.40.0030.00618.03
8.2.30.0000.00718.04
8.2.20.0030.00517.59
8.2.10.0050.00218.00
8.2.00.0040.00417.70
8.1.280.0160.00625.92
8.1.270.0030.01223.94
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0070.01122.51
8.1.230.0110.00020.71
8.1.220.0040.00418.77
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0040.00417.13
8.1.180.0000.00718.10
8.1.170.0030.00618.50
8.1.160.0030.00521.83
8.1.150.0000.00718.73
8.1.140.0000.00717.40
8.1.130.0000.00717.82
8.1.120.0030.00317.31
8.1.110.0080.00017.42
8.1.100.0080.00017.25
8.1.90.0070.00017.41
8.1.80.0070.00017.46
8.1.70.0000.00817.34
8.1.60.0040.00417.62
8.1.50.0040.00417.44
8.1.40.0040.00417.42
8.1.30.0040.00417.67
8.1.20.0070.00017.56
8.1.10.0000.00817.52
8.1.00.0040.00417.44
8.0.300.0040.00719.94
8.0.290.0000.00816.63
8.0.280.0040.00418.38
8.0.270.0030.00317.25
8.0.260.0060.00017.26
8.0.250.0040.00417.00
8.0.240.0060.00016.86
8.0.230.0060.00016.87
8.0.220.0030.00316.72
8.0.210.0000.00616.84
8.0.200.0030.00316.92
8.0.190.0030.00316.87
8.0.180.0000.00716.74
8.0.170.0080.00016.79
8.0.160.0000.00816.84
8.0.150.0040.00416.76
8.0.140.0000.00716.87
8.0.130.0000.00813.24
8.0.120.0040.00416.75
8.0.110.0050.00316.72
8.0.100.0040.00416.79
8.0.90.0040.00416.72
8.0.80.0090.00616.86
8.0.70.0080.00016.77
8.0.60.0070.00016.89
8.0.50.0030.00516.82
8.0.30.0150.00717.23
8.0.20.0110.00617.40
8.0.10.0040.00416.93
8.0.00.0090.00916.96
7.4.330.0050.00015.00
7.4.320.0030.00316.54
7.4.300.0040.00416.59
7.4.290.0060.00016.48
7.4.280.0000.00716.53
7.4.270.0070.00016.55
7.4.260.0070.00016.46
7.4.250.0030.00516.57
7.4.240.0020.00616.63
7.4.230.0000.00716.57
7.4.220.0150.00416.50
7.4.210.0080.00716.54
7.4.200.0060.00316.63
7.4.160.0100.00716.33
7.4.150.0160.01017.40
7.4.140.0140.00317.86
7.4.130.0090.00916.43
7.4.120.0070.01016.32
7.4.110.0100.00616.63
7.4.100.0120.00616.34
7.4.90.0150.00316.19
7.4.80.0040.02119.39
7.4.70.0090.00916.64
7.4.60.0100.00716.54
7.4.50.0050.00216.36
7.4.40.0100.00716.23
7.4.30.0060.01516.51
7.4.00.0000.01214.96
7.3.330.0030.00313.16
7.3.320.0030.00313.17
7.3.310.0000.00616.05
7.3.300.0040.00416.25
7.3.290.0030.01316.25
7.3.280.0080.00916.22
7.3.270.0110.00617.40
7.3.260.0100.00716.43
7.3.250.0120.00716.26
7.3.240.0110.00716.47
7.3.230.0030.01316.43
7.3.210.0150.00616.56
7.3.200.0070.01119.39
7.3.190.0060.01116.43
7.3.180.0120.00416.27
7.3.170.0120.00916.57
7.3.160.0120.00316.25
7.3.120.0060.01314.87
7.3.110.0000.01314.91
7.3.100.0040.01215.04
7.3.90.0000.01314.97
7.3.80.0110.00414.92
7.3.70.0100.00314.77
7.3.60.0090.00614.76
7.3.50.0060.00614.69
7.3.40.0070.01014.83
7.3.30.0070.00414.59
7.3.20.0030.01016.52
7.3.10.0040.00816.52
7.3.00.0070.00616.51
7.2.330.0110.01216.67
7.2.320.0120.00916.52
7.2.310.0070.01016.64
7.2.300.0180.00316.55
7.2.290.0070.01016.74
7.2.250.0140.00314.89
7.2.240.0100.01014.80
7.2.230.0100.00314.82
7.2.220.0090.00614.92
7.2.210.0030.01014.90
7.2.200.0100.00314.66
7.2.190.0000.00915.14
7.2.180.0100.00715.17
7.2.170.0060.00914.98
7.2.130.0030.00916.70
7.2.120.0030.01016.80
7.2.110.0040.01116.89
7.2.100.0100.00717.05
7.2.90.0030.01216.69
7.2.80.0030.00916.59
7.2.70.0000.01316.64
7.2.60.0050.00917.01
7.2.50.0070.00716.81
7.2.40.0060.00617.03
7.2.30.0070.01116.54
7.2.20.0030.01017.02
7.2.10.0060.00316.91
7.2.00.0060.00616.56
7.1.330.0080.00815.88
7.1.320.0030.01015.81
7.1.310.0060.00615.49
7.1.300.0030.00615.64
7.1.290.0060.00915.89
7.1.280.0000.00915.79
7.1.270.0040.01115.78
7.1.260.0090.00615.72
7.1.250.0060.00915.82
7.1.200.0050.00515.85
7.1.70.0000.00816.87
7.1.60.0070.01719.40
7.1.50.0210.00316.63
7.1.00.0130.06722.43
7.0.200.0150.00616.70
7.0.140.0030.06721.99
7.0.60.0030.06319.78
7.0.50.0170.07317.85
7.0.40.0100.04020.23
7.0.30.0270.05020.13
7.0.20.0230.08320.23
7.0.10.0100.04720.30
7.0.00.0070.03720.31
5.6.280.0030.07021.15
5.6.210.0070.08720.65
5.6.200.0070.08018.19
5.6.190.0070.08320.33
5.6.180.0230.04720.33
5.6.170.0270.08320.40
5.6.160.0130.08320.45
5.6.150.0070.03718.14
5.6.140.0070.05318.14
5.6.130.0100.04018.17
5.6.120.0070.08321.14
5.6.110.0130.08020.98
5.6.100.0030.08320.98
5.6.90.0030.04320.98
5.6.80.0000.06320.39
5.5.350.0130.08320.44
5.5.340.0070.07317.98
5.5.330.0030.08720.15
5.5.320.3030.03320.34
5.5.310.0330.05020.41
5.5.300.0130.03018.01
5.5.290.0030.08017.92
5.5.280.0030.09320.65
5.5.270.0170.06320.86
5.5.260.0130.06720.64
5.5.250.0070.03720.47
5.5.240.0400.05720.14
5.4.450.0300.07019.42
5.4.440.0330.05019.49
5.4.430.0300.04019.54
5.4.420.0200.04319.47
5.4.410.0230.03319.34
5.4.400.0300.07019.21
5.4.390.0300.06719.09
5.4.380.0170.05018.98
5.4.370.0300.07319.09
5.4.360.0370.05319.24
5.4.350.0230.07319.31
5.4.340.0230.05319.08
5.4.320.0300.07719.00
5.4.310.0330.06719.13
5.4.300.0300.04718.97
5.4.290.0330.07019.21
5.4.280.0300.07019.06
5.4.270.0300.04319.21
5.4.260.0330.07019.15
5.4.250.0330.04019.05
5.4.240.0330.04019.21
5.4.230.0270.08019.16
5.4.220.0300.07019.15
5.4.210.0370.03019.12
5.4.200.0230.05319.14
5.4.190.0330.06318.94
5.4.180.0270.07319.19
5.4.170.0300.07019.23
5.4.160.0300.03719.05
5.4.150.0270.04018.97
5.4.140.0300.05716.39
5.4.130.0370.05316.37
5.4.120.0200.04016.44
5.4.110.0270.03016.33
5.4.100.0300.05716.47
5.4.90.0270.05016.19
5.4.80.0200.03316.50
5.4.70.0270.03016.49
5.4.60.0300.07316.52
5.4.50.0300.04016.42
5.4.40.0330.06716.53
5.4.30.0300.06316.37
5.4.20.0270.06316.32
5.4.10.0170.04016.42
5.4.00.0270.06315.77
5.3.290.0300.04714.75
5.3.280.0200.03714.59
5.3.270.0400.06714.68
5.3.260.0270.05314.59
5.3.250.0200.03714.66
5.3.240.0230.06014.83
5.3.230.0070.03314.61
5.3.220.0100.04014.64
5.3.210.0170.03714.59
5.3.200.0200.04314.79
5.3.190.0270.03314.57
5.3.180.0270.04014.54
5.3.170.0330.03714.67
5.3.160.0200.04314.57
5.3.150.0400.05714.47
5.3.140.0230.04314.47
5.3.130.0200.05014.62
5.3.120.0200.05714.46
5.3.110.0230.04014.52
5.3.100.0270.04014.05
5.3.90.0270.04714.14
5.3.80.0300.02714.10
5.3.70.0300.07014.07
5.3.60.0270.05014.23
5.3.50.0300.04013.96
5.3.40.0400.05714.00
5.3.30.0330.06713.83
5.3.20.0230.04313.84
5.3.10.0230.06013.57
5.3.00.0230.05313.75
5.2.170.0270.03311.15
5.2.160.0270.02711.10
5.2.150.0270.05711.16
5.2.140.0230.03311.29
5.2.130.0300.03711.16
5.2.120.0230.03011.11
5.2.110.0270.06011.24
5.2.100.0230.05011.11
5.2.90.0200.06011.21
5.2.80.0170.02711.18
5.2.70.0200.03711.32
5.2.60.0330.05310.95
5.2.50.0330.05011.24
5.2.40.0230.06010.93
5.2.30.0270.04010.97
5.2.20.0300.02710.89
5.2.10.0270.05310.86
5.2.00.0230.05710.88
5.1.60.0270.0409.89
5.1.50.0270.0479.98
5.1.40.0200.0479.98
5.1.30.0170.04710.42
5.1.20.0200.05310.28
5.1.10.0300.04710.05
5.1.00.0230.05010.30
5.0.50.0200.0278.64
5.0.40.0170.0408.52
5.0.30.0070.0608.21
5.0.20.0070.0338.09
5.0.10.0130.0378.26
5.0.00.0100.0578.09
4.4.90.0130.0207.69
4.4.80.0130.0337.69
4.4.70.0130.0307.69
4.4.60.0170.0137.69
4.4.50.0130.0307.69
4.4.40.0130.0507.69
4.4.30.0170.0237.69
4.4.20.0070.0337.69
4.4.10.0100.0277.69
4.4.00.0100.0307.69
4.3.110.0170.0307.69
4.3.100.0070.0207.69
4.3.90.0230.0137.69
4.3.80.0130.0237.69
4.3.70.0100.0277.69
4.3.60.0070.0177.69
4.3.50.0130.0277.69
4.3.40.0170.0437.69
4.3.30.0100.0307.69
4.3.20.0100.0237.69
4.3.10.0070.0307.69
4.3.00.0070.0337.69

preferences:
34.85 ms | 401 KiB | 5 Q