3v4l.org

run code in 300+ PHP versions simultaneously
<?php $os = array('bar' => 'baz'); if (in_array("bar", $os)) { echo "trouve"; $key = array_search('baz', $os); echo $key; }

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.0070.01418.43
8.3.50.0070.01416.36
8.3.40.0070.00718.45
8.3.30.0120.00318.42
8.3.20.0050.00318.88
8.3.10.0080.00020.77
8.3.00.0090.00017.79
8.2.180.0110.00718.29
8.2.170.0110.00422.96
8.2.160.0110.00720.68
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0060.00319.64
8.2.120.0080.00026.35
8.2.110.0040.00421.07
8.2.100.0110.00017.66
8.2.90.0050.00317.75
8.2.80.0000.00818.81
8.2.70.0030.00617.91
8.2.60.0000.00717.80
8.2.50.0030.00618.10
8.2.40.0030.00519.34
8.2.30.0000.00719.35
8.2.20.0070.00017.86
8.2.10.0000.00818.09
8.2.00.0000.00719.23
8.1.280.0150.00025.92
8.1.270.0050.00322.19
8.1.260.0050.00226.35
8.1.250.0070.00728.09
8.1.240.0000.00920.99
8.1.230.0080.00318.82
8.1.220.0060.00317.74
8.1.210.0070.00218.77
8.1.200.0000.00817.23
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0040.00418.73
8.1.150.0030.00518.81
8.1.140.0030.00317.50
8.1.130.0000.00718.93
8.1.120.0050.00217.32
8.1.110.0030.00517.35
8.1.100.0000.00717.30
8.1.90.0030.00517.43
8.1.80.0000.00917.38
8.1.70.0030.00617.39
8.1.60.0040.00417.52
8.1.50.0030.00517.38
8.1.40.0000.00717.49
8.1.30.0000.00817.57
8.1.20.0000.00717.55
8.1.10.0030.00717.30
8.1.00.0050.00317.36
8.0.300.0030.00518.77
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0000.00717.09
8.0.260.0070.00017.18
8.0.250.0030.00316.77
8.0.240.0040.00416.79
8.0.230.0030.00316.75
8.0.220.0000.00716.73
8.0.210.0000.00716.73
8.0.200.0030.00316.80
8.0.190.0000.00716.91
8.0.180.0060.00316.82
8.0.170.0040.00416.83
8.0.160.0000.00816.75
8.0.150.0050.00216.79
8.0.140.0040.00416.66
8.0.130.0000.00513.20
8.0.120.0000.00816.79
8.0.110.0040.00716.79
8.0.100.0050.00216.70
8.0.90.0030.00516.71
8.0.80.0100.00516.81
8.0.70.0000.00716.92
8.0.60.0000.00716.72
8.0.50.0040.00416.81
8.0.30.0120.00617.05
8.0.20.0130.00617.40
8.0.10.0040.00416.86
8.0.00.0130.00516.77
7.4.330.0000.00415.55
7.4.320.0030.00316.41
7.4.300.0000.00616.57
7.4.290.0030.00316.50
7.4.280.0040.00416.52
7.4.270.0060.00016.45
7.4.260.0050.00316.44
7.4.250.0030.00716.51
7.4.240.0000.00716.45
7.4.230.0080.00016.55
7.4.220.0030.00516.53
7.4.210.0070.00716.46
7.4.200.0000.00616.43
7.4.160.0110.00616.40
7.4.140.0100.01117.86
7.4.130.0080.00816.43
7.4.120.0110.00716.42
7.4.110.0070.01016.59
7.4.100.0160.00016.37
7.4.90.0070.01516.41
7.4.80.0040.01819.39
7.4.70.0060.01116.43
7.4.60.0130.00916.42
7.4.50.0070.01116.57
7.4.40.0150.00616.43
7.4.00.0000.01714.89
7.3.330.0050.00013.07
7.3.320.0060.00012.97
7.3.310.0030.00316.09
7.3.300.0000.00716.07
7.3.290.0000.00616.11
7.3.280.0080.00916.12
7.3.260.0080.01016.31
7.3.240.0070.01016.20
7.3.230.0060.01016.28
7.3.210.0100.01416.34
7.3.200.0040.01716.03
7.3.190.0070.01016.14
7.3.180.0090.00616.46
7.3.170.0080.00816.45
7.3.160.0060.00916.33
7.2.330.0150.00616.11
7.2.320.0130.00616.16
7.2.310.0030.01316.45
7.2.300.0130.00616.47
7.2.290.0040.01416.52
7.2.60.1550.01214.72
7.2.50.2450.01014.77
7.2.40.2040.00715.28
7.2.30.2570.01115.23
7.2.20.2490.01215.14
7.2.10.2560.00915.41
7.2.00.1660.00815.27
7.1.200.0000.01215.80
7.1.170.2260.00513.81
7.1.160.1780.00916.59
7.1.150.2410.01216.54
7.1.140.2000.01716.80
7.1.130.2550.00916.75
7.1.120.2810.01616.46
7.1.110.3870.00916.09
7.1.100.2580.01416.12
7.1.90.2080.00716.23
7.1.80.2150.01116.16
7.1.70.2630.01015.29
7.1.60.2880.01333.29
7.1.50.3500.01432.57
7.1.40.3160.01832.27
7.1.30.3290.01532.63
7.1.20.4000.01732.58
7.1.10.4430.01214.76
7.1.00.2440.00614.84

preferences:
55.52 ms | 401 KiB | 5 Q