3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func($c, $d) { $result = array_search($d, $c); if (result !== false) { return $result; } } $c=[1,2,4,8,18,20,33,66,99]; echo func($c, 19);

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.0100.00716.50
8.3.50.0200.00622.05
8.3.40.0170.00318.87
8.3.30.0070.01418.77
8.3.20.0070.00020.19
8.3.10.0050.00323.61
8.3.00.0080.00019.79
8.2.180.0030.01316.50
8.2.170.0070.00722.96
8.2.160.0100.01020.26
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00319.27
8.2.120.0000.00826.35
8.2.110.0060.00320.98
8.2.100.0030.00917.71
8.2.90.0000.00819.28
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0040.00418.04
8.2.50.0030.00518.10
8.2.40.0050.00322.27
8.2.30.0000.00820.49
8.2.20.0000.00717.72
8.2.10.0040.00417.98
8.2.00.0050.00318.11
8.1.280.0110.00825.92
8.1.270.0090.00020.25
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0070.01023.92
8.1.230.0050.00519.23
8.1.220.0000.00817.78
8.1.210.0070.00318.77
8.1.200.0040.00817.22
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0060.00318.59
8.1.160.0030.00520.63
8.1.150.0030.00518.93
8.1.140.0000.00819.61
8.1.130.0030.00317.73
8.1.120.0000.00717.49
8.1.110.0040.00417.34
8.1.100.0080.00017.52
8.1.90.0040.00417.36
8.1.80.0060.00317.38
8.1.70.0040.00417.33
8.1.60.0040.00417.56
8.1.50.0000.00817.43
8.1.40.0030.00617.40
8.1.30.0040.00417.54
8.1.20.0000.00817.65
8.1.10.0000.00817.52
8.1.00.0000.00817.36
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0070.00017.25
8.0.260.0070.00018.28
8.0.250.0070.00017.00
8.0.240.0060.00016.99
8.0.230.0040.00416.92
8.0.220.0040.00416.95
8.0.210.0050.00216.97
8.0.200.0000.00616.87
8.0.190.0000.00816.99
8.0.180.0000.00716.85
8.0.170.0060.00316.87
8.0.160.0000.00816.91
8.0.150.0030.00316.77
8.0.140.0040.00416.78
8.0.130.0000.00513.36
8.0.120.0040.00416.81
8.0.110.0070.00016.94
8.0.100.0070.00017.00
8.0.90.0040.00416.78
8.0.80.0120.00817.00
8.0.70.0070.00016.96
8.0.60.0060.00316.84
8.0.50.0070.00017.04
8.0.30.0100.00717.16
8.0.20.0100.00917.40
8.0.10.0000.00816.98
8.0.00.0090.00816.75
7.4.330.0000.00616.71
7.4.320.0000.00716.54
7.4.300.0070.00216.59
7.4.290.0070.00016.52
7.4.280.0030.00616.47
7.4.270.0030.00316.63
7.4.260.0000.00716.60
7.4.250.0000.00816.59
7.4.240.0020.00616.50
7.4.230.0000.00816.49
7.4.220.0140.00416.44
7.4.210.0140.00716.62
7.4.200.0030.00316.57
7.4.160.0000.01516.53
7.4.150.0140.00317.40
7.4.140.0070.01117.86
7.4.130.0120.01216.49
7.4.120.0100.00716.49
7.4.110.0130.00716.49
7.4.100.0130.01016.41
7.4.90.0100.00716.71
7.4.80.0140.00319.39
7.4.70.0120.00416.46
7.4.60.0030.01416.64
7.4.50.0130.00016.47
7.4.40.0060.01616.46
7.4.30.0070.01016.77
7.4.00.0110.00414.88
7.3.330.0030.00613.23
7.3.320.0040.00413.37
7.3.310.0040.00416.25
7.3.300.0030.00316.27
7.3.290.0080.00916.29
7.3.280.0110.00916.26
7.3.270.0120.00617.40
7.3.260.0170.00016.32
7.3.240.0150.00216.37
7.3.230.0140.00716.42
7.3.210.0110.00516.53
7.3.200.0040.01216.30
7.3.190.0090.00816.54
7.3.180.0030.01316.56
7.3.170.0090.01216.45
7.3.160.0120.00616.46
7.2.330.0130.00416.48
7.2.320.0070.01016.44
7.2.310.0070.01016.51
7.2.300.0140.00416.39
7.2.290.0060.01216.79
7.2.60.0000.01116.52
7.2.00.0190.00418.80
7.1.200.0060.00615.71
7.1.100.0070.00718.10
7.1.70.0040.00417.29
7.1.60.0100.01419.05
7.1.50.0070.01316.92
7.1.00.0070.07322.44
7.0.200.0000.00916.78
7.0.60.0070.03720.03
7.0.50.0030.05717.86
7.0.40.0030.05320.24
7.0.30.0400.06020.30
7.0.20.0200.04020.33
7.0.10.0130.05720.10
7.0.00.0030.08020.09
5.6.280.0100.05020.89
5.6.210.0030.04720.50
5.6.200.0200.07318.29
5.6.190.0070.05020.64
5.6.180.2930.05020.64
5.6.170.0330.07720.60
5.6.160.0170.06020.50
5.6.150.0070.03718.18
5.6.140.0030.08718.18
5.6.130.0100.08018.19
5.6.120.0030.09021.01
5.6.110.0100.08321.14
5.6.100.0200.07321.00
5.6.90.0170.07321.02
5.6.80.0030.06320.39
5.5.350.0170.07720.52
5.5.340.0070.04318.05
5.5.330.0130.07320.40
5.5.320.0330.07720.35
5.5.310.0300.06720.19
5.5.300.0070.04718.05
5.5.290.0070.06718.08
5.5.280.0100.07720.73
5.5.270.0030.08720.64
5.5.260.0030.07720.73
5.5.250.0200.07720.78
5.5.240.0270.07720.19

preferences:
50.08 ms | 401 KiB | 5 Q