3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = array(1,2,3,4,5,1234123,6); $max = max($numbers); $pos = array_search($max, $numbers); echo "Position: ".$pos;

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.130.0060.00318.49
8.3.120.0110.00018.82
8.3.110.0090.00920.94
8.3.100.0000.00824.06
8.3.90.0060.00326.77
8.3.80.0070.00318.05
8.3.70.0070.00718.18
8.3.60.0110.00718.30
8.3.50.0080.00817.24
8.3.40.0070.00718.79
8.3.30.0090.00918.52
8.3.20.0050.00221.64
8.3.10.0030.00521.63
8.3.00.0060.00319.66
8.2.250.0040.00416.61
8.2.240.0000.01016.97
8.2.230.0030.00622.58
8.2.220.0090.00637.54
8.2.210.0000.00726.77
8.2.200.0060.00316.50
8.2.190.0080.00816.58
8.2.180.0040.01116.38
8.2.170.0040.01122.96
8.2.160.0070.00721.89
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.04
8.2.110.0060.00322.26
8.2.100.0090.00318.16
8.2.90.0050.00217.50
8.2.80.0000.00818.79
8.2.70.0080.00019.39
8.2.60.0050.00317.63
8.2.50.0000.00917.63
8.2.40.0030.00619.13
8.2.30.0070.00022.32
8.2.20.0070.00018.04
8.2.10.0050.00318.02
8.2.00.0000.00717.98
8.1.300.0120.00618.27
8.1.290.0080.00030.84
8.1.280.0120.00325.92
8.1.270.0000.00822.14
8.1.260.0030.00526.35
8.1.250.0160.00028.09
8.1.240.0090.00020.79
8.1.230.0070.00417.70
8.1.220.0040.00417.78
8.1.210.0060.00318.77
8.1.200.0000.01117.00
8.1.190.0050.00517.23
8.1.180.0040.00418.10
8.1.170.0050.00317.62
8.1.160.0000.00718.86
8.1.150.0040.00421.92
8.1.140.0000.00817.63
8.1.130.0000.00719.00
8.1.120.0030.00417.36
8.1.110.0040.00417.38
8.1.100.0080.00017.39
8.1.90.0080.00017.41
8.1.80.0030.00517.44
8.1.70.0070.00017.34
8.1.60.0030.00517.51
8.1.50.0060.00317.45
8.1.40.0070.00017.38
8.1.30.0040.00417.41
8.1.20.0000.00717.59
8.1.10.0030.00517.42
8.1.00.0000.00817.32
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0060.00318.43
8.0.270.0030.00317.20
8.0.260.0030.00319.97
8.0.250.0030.00617.02
8.0.240.0070.00016.96
8.0.230.0000.00916.92
8.0.220.0000.00716.77
8.0.210.0030.00516.77
8.0.200.0030.00316.87
8.0.190.0000.00816.83
8.0.180.0030.00516.88
8.0.170.0090.00016.95
8.0.160.0000.00716.87
8.0.150.0070.00016.81
8.0.140.0030.00816.83
8.0.130.0050.00013.24
8.0.120.0000.00716.85
8.0.110.0000.01016.88
8.0.100.0030.00516.88
8.0.90.0050.00316.79
8.0.80.0110.00716.86
8.0.70.0000.00716.85
8.0.60.0040.00416.80
8.0.50.0050.00316.81
8.0.30.0080.01117.07
8.0.20.0150.00917.40
8.0.10.0000.00716.87
8.0.00.0100.00716.56
7.4.330.0000.00515.55
7.4.320.0060.00016.45
7.4.300.0030.00316.43
7.4.290.0080.00016.37
7.4.280.0060.00316.41
7.4.270.0040.00416.44
7.4.260.0070.00016.31
7.4.250.0000.00716.54
7.4.240.0000.00816.29
7.4.230.0040.00416.28
7.4.220.0040.00416.54
7.4.210.0060.01216.47
7.4.200.0000.00716.34
7.4.160.0100.00716.48
7.4.150.0090.00817.40
7.4.140.0120.00817.86
7.4.130.0140.00316.55
7.4.120.0080.00916.44
7.4.110.0070.01016.48
7.4.100.0060.01316.20
7.4.90.0030.01316.51
7.4.80.0110.00819.39
7.4.70.0100.01016.56
7.4.60.0120.00616.18
7.4.50.0070.01016.43
7.4.40.0090.00616.47
7.4.00.0060.01214.84
7.3.330.0000.00512.92
7.3.320.0000.00712.95
7.3.310.0040.00416.06
7.3.300.0070.00016.23
7.3.290.0030.00316.21
7.3.280.0080.01016.18
7.3.270.0150.00917.40
7.3.260.0100.00716.31
7.3.240.0120.00516.25
7.3.230.0030.01516.44
7.3.210.0130.00316.41
7.3.200.0130.01316.34
7.3.190.0060.00916.18
7.3.180.0120.00616.29
7.3.170.0090.00916.39
7.3.160.0130.00716.38
7.2.330.0070.01016.73
7.2.320.0120.00916.70
7.2.310.0080.00816.73
7.2.300.0090.00916.54
7.2.290.0080.00816.70
7.2.60.0000.01116.71
7.2.20.0180.01418.06
7.2.10.0160.01317.71
7.2.00.0130.01317.66
7.1.200.0030.01015.87
7.1.140.0170.00616.94
7.1.130.0150.01116.67
7.1.120.0090.01816.25
7.1.110.0470.01315.96
7.1.100.0110.00816.16
7.1.90.0100.01516.26
7.1.80.0150.01016.02
7.1.70.0100.00915.35
7.1.60.0350.01633.15
7.1.50.0290.01833.06
7.1.40.0270.01532.37
7.1.30.0310.02032.75
7.1.20.0250.01632.45
7.1.10.0080.01114.82
7.1.00.0120.01514.93

preferences:
27.4 ms | 403 KiB | 5 Q