3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array('string1', 'string', 'string3'); $k = array_search('string2', $list);

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.0210.00318.25
8.3.50.0110.00716.25
8.3.40.0140.00718.72
8.3.30.0140.00018.49
8.3.20.0040.00421.90
8.3.10.0030.00523.48
8.3.00.0080.00021.23
8.2.180.0090.00618.02
8.2.170.0030.01422.96
8.2.160.0110.00422.05
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00420.35
8.2.120.0000.00826.35
8.2.110.0000.01119.17
8.2.100.0080.00417.78
8.2.90.0040.00418.22
8.2.80.0060.00318.16
8.2.70.0040.00417.93
8.2.60.0000.00817.50
8.2.50.0040.00418.10
8.2.40.0030.00522.15
8.2.30.0000.00719.36
8.2.20.0040.00418.02
8.2.10.0080.00017.67
8.2.00.0050.00318.01
8.1.280.0090.00925.92
8.1.270.0040.00423.92
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0040.01419.52
8.1.230.0040.00722.63
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00618.59
8.1.160.0000.00718.73
8.1.150.0030.00320.25
8.1.140.0000.00717.49
8.1.130.0030.00518.96
8.1.120.0030.00317.41
8.1.110.0040.00417.41
8.1.100.0030.00317.36
8.1.90.0040.00417.38
8.1.80.0020.00517.30
8.1.70.0000.00717.43
8.1.60.0050.00317.38
8.1.50.0040.00417.44
8.1.40.0000.00817.42
8.1.30.0000.00817.55
8.1.20.0070.00017.47
8.1.10.0060.00317.33
8.1.00.0030.00717.20
8.0.300.0030.00319.85
8.0.290.0060.00316.63
8.0.280.0000.00818.26
8.0.270.0030.00317.18
8.0.260.0000.00716.65
8.0.250.0030.00316.91
8.0.240.0000.00816.94
8.0.230.0000.00716.86
8.0.220.0030.00316.69
8.0.210.0000.00716.81
8.0.200.0000.00916.93
8.0.190.0040.00416.74
8.0.180.0000.00716.74
8.0.170.0000.00816.65
8.0.160.0000.00716.77
8.0.150.0040.00416.74
8.0.140.0070.00016.74
8.0.130.0000.00513.23
8.0.120.0000.00816.81
8.0.110.0000.00716.87
8.0.100.0040.00416.69
8.0.90.0070.00016.64
8.0.80.0040.01116.79
8.0.70.0030.00316.87
8.0.60.0080.00016.71
8.0.50.0040.00416.70
8.0.30.0100.01517.04
8.0.20.0090.01117.40
8.0.10.0000.00816.89
8.0.00.0090.01416.50
7.4.330.0000.00515.55
7.4.320.0000.00616.48
7.4.300.0000.00616.34
7.4.290.0050.00216.56
7.4.280.0040.00416.55
7.4.270.0070.00016.52
7.4.260.0030.00316.42
7.4.250.0030.00316.48
7.4.240.0000.00716.42
7.4.230.0040.00416.55
7.4.220.0030.00516.30
7.4.210.0030.01316.49
7.4.200.0040.00416.54
7.4.160.0040.01416.40
7.4.140.0100.01017.86
7.4.130.0040.01416.38
7.4.120.0090.01116.40
7.4.110.0070.01016.54
7.4.100.0170.00816.30
7.4.90.0100.00716.45
7.4.80.0060.01819.39
7.4.70.0120.00616.41
7.4.60.0100.00716.27
7.4.50.0110.00716.04
7.4.40.0000.01616.44
7.4.00.0070.00614.65
7.3.330.0060.00012.98
7.3.320.0030.00313.00
7.3.310.0000.00616.13
7.3.300.0000.00716.10
7.3.290.0000.00716.04
7.3.280.0070.00716.13
7.3.260.0040.01416.11
7.3.240.0150.00316.19
7.3.230.0090.00616.51
7.3.210.0130.00316.36
7.3.200.0170.00316.20
7.3.190.0150.00316.38
7.3.180.0100.00616.07
7.3.170.0040.01216.36
7.3.160.0140.00616.21
7.2.330.0120.00916.21
7.2.320.0030.01316.43
7.2.310.0000.01616.46
7.2.300.0050.01116.54
7.2.290.0080.00816.41
7.2.60.0030.00616.90
7.2.30.0150.01017.54
7.2.20.0140.01417.77
7.2.10.0350.00917.75
7.2.00.0100.01217.97
7.1.200.0060.00615.66
7.1.150.0170.00616.67
7.1.140.0140.01216.67
7.1.130.0110.01116.16
7.1.120.0140.01116.73
7.1.110.0230.00816.05
7.1.100.0150.01016.15
7.1.90.0210.00616.10
7.1.80.0160.01015.49
7.1.70.0130.01215.26
7.1.60.0340.01233.00
7.1.50.0310.01432.75
7.1.40.0300.01532.63
7.1.30.0340.01232.63
7.1.20.0380.02232.75
7.1.10.0160.01314.93
7.1.00.0180.01314.67

preferences:
56.28 ms | 400 KiB | 5 Q