3v4l.org

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

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.0130.01018.43
8.3.50.0120.00616.35
8.3.40.0070.00718.54
8.3.30.0090.00918.54
8.3.20.0040.00418.98
8.3.10.0080.00020.73
8.3.00.0140.00017.77
8.2.180.0120.00918.29
8.2.170.0110.00422.96
8.2.160.0040.01120.64
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0100.00726.16
8.2.120.0040.00419.83
8.2.110.0060.00322.13
8.2.100.0040.01117.72
8.2.90.0080.00017.63
8.2.80.0090.00018.77
8.2.70.0040.00417.80
8.2.60.0040.00417.91
8.2.50.0000.00818.10
8.2.40.0050.00219.32
8.2.30.0080.00019.31
8.2.20.0040.00417.98
8.2.10.0080.00017.99
8.2.00.0000.00719.39
8.1.280.0090.00625.92
8.1.270.0040.00422.19
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00023.92
8.1.230.0070.00417.71
8.1.220.0030.00618.57
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0070.00018.81
8.1.150.0050.00518.69
8.1.140.0000.00717.64
8.1.130.0000.00619.01
8.1.120.0030.00317.41
8.1.110.0000.00817.36
8.1.100.0070.00017.28
8.1.90.0030.00617.38
8.1.80.0060.00317.37
8.1.70.0060.00317.40
8.1.60.0000.00917.45
8.1.50.0040.00817.33
8.1.40.0050.00317.48
8.1.30.0000.00717.57
8.1.20.0000.00717.59
8.1.10.0000.01217.45
8.1.00.0000.00917.36
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.39
8.0.270.0070.00017.21
8.0.260.0040.00417.11
8.0.250.0040.00416.91
8.0.240.0080.00016.86
8.0.230.0070.00016.90
8.0.220.0070.00016.86
8.0.210.0040.00416.69
8.0.200.0000.00716.93
8.0.190.0030.00316.89
8.0.180.0050.00316.74
8.0.170.0040.00416.85
8.0.160.0050.00316.80
8.0.150.0030.00316.84
8.0.140.0000.00716.70
8.0.130.0000.00613.25
8.0.120.0000.00716.68
8.0.110.0060.00316.83
8.0.100.0040.00416.61
8.0.90.0020.00516.70
8.0.80.0130.00516.82
8.0.70.0070.00016.86
8.0.60.0050.00316.79
8.0.50.0040.00416.70
8.0.30.0070.01316.97
8.0.20.0080.01017.40
8.0.10.0040.00316.77
8.0.00.0090.01116.49
7.4.330.0000.00615.55
7.4.320.0030.00316.39
7.4.300.0060.00016.45
7.4.290.0080.00016.56
7.4.280.0040.00416.52
7.4.270.0030.00316.44
7.4.260.0030.00316.57
7.4.250.0000.00816.51
7.4.240.0070.00016.56
7.4.230.0000.00616.44
7.4.220.0040.00416.43
7.4.210.0080.01016.54
7.4.200.0000.00716.51
7.4.160.0080.01016.33
7.4.140.0100.01217.86
7.4.130.0100.01016.53
7.4.120.0120.00916.44
7.4.110.0160.00016.27
7.4.100.0040.01316.31
7.4.90.0060.01216.26
7.4.80.0060.00919.39
7.4.70.0120.00416.60
7.4.60.0030.01716.35
7.4.50.0120.00316.13
7.4.40.0060.01616.40
7.4.00.0030.01214.97
7.3.330.0000.00512.89
7.3.320.0030.00312.86
7.3.310.0000.00715.97
7.3.300.0060.00015.99
7.3.290.0030.00316.05
7.3.280.0130.00916.19
7.3.260.0120.00516.18
7.3.240.0090.00816.28
7.3.230.0100.00716.08
7.3.210.0070.01116.28
7.3.200.0070.01116.17
7.3.190.0140.00316.04
7.3.180.0030.01316.22
7.3.170.0060.01016.40
7.3.160.0060.01016.13
7.2.330.0150.00616.42
7.2.320.0210.00016.18
7.2.310.0100.00616.09
7.2.300.0030.01416.33
7.2.290.0100.01316.55
7.2.60.1470.01014.79
7.2.50.1090.00714.96
7.2.40.0670.01015.02
7.2.30.0940.00815.32
7.2.20.0950.00914.98
7.2.10.1210.01015.37
7.2.00.0940.00915.29
7.1.200.0120.00315.77
7.1.170.1530.00813.77
7.1.160.0910.00816.72
7.1.150.0970.01116.58
7.1.140.1110.01016.35
7.1.130.1100.01416.30
7.1.120.1380.00916.57
7.1.110.2070.00715.92
7.1.100.1620.01215.92
7.1.90.1120.01115.95
7.1.80.1730.01116.05
7.1.70.1630.01615.39
7.1.60.1730.01633.03
7.1.50.1600.01632.66
7.1.40.1450.01232.36
7.1.30.1680.01432.47
7.1.20.1780.01932.58
7.1.10.1270.01214.74
7.1.00.1310.01115.00

preferences:
59.41 ms | 401 KiB | 5 Q