3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(); $a = range(1,10000); foreach ($a as $i) { isset($a['asd']); } echo microtime() - $time, "\n"; $time = microtime(); $a = range(1,10000); foreach ($a as $i) { array_key_exists('asd', $a); } echo microtime() - $time, "\n";

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)
7.4.10.0110.00715.54
7.4.00.0070.01315.40
7.3.130.0100.01015.33
7.3.120.0070.01315.29
7.3.110.0130.00715.35
7.3.100.0120.00315.21
7.3.90.0040.01115.48
7.3.80.0060.01015.21
7.3.70.0120.00015.60
7.3.60.0090.00615.63
7.3.50.0030.01015.36
7.3.40.0060.00615.20
7.3.30.0030.01315.37
7.3.20.0110.00416.50
7.3.10.0090.00816.81
7.3.00.0030.00616.66
7.2.260.0070.01015.80
7.2.250.0070.01315.43
7.2.240.0120.00615.67
7.2.230.0000.01515.52
7.2.220.0070.00715.64
7.2.210.0000.01315.65
7.2.200.0030.00915.57
7.2.190.0090.00315.53
7.2.180.0060.01015.54
7.2.170.0030.01315.74
7.2.160.0090.00915.69
7.2.150.0040.01416.78
7.2.140.0070.01116.64
7.2.130.0030.01316.88
7.2.120.0030.01017.03
7.2.110.0100.00717.04
7.2.100.0060.00916.82
7.2.90.1230.01416.16
7.2.80.0140.00915.98
7.2.70.0070.01016.19
7.2.60.0150.00516.21
7.2.50.0110.01016.17
7.2.40.0090.01016.30
7.2.30.0060.01316.26
7.2.20.0080.01316.25
7.2.10.0160.01216.29
7.2.00.0060.01116.15
7.1.330.0030.01315.66
7.1.320.0070.01015.73
7.1.310.0070.00715.86
7.1.300.0000.01415.60
7.1.290.0060.00615.79
7.1.280.0100.00715.95
7.1.270.0040.01115.71
7.1.260.0150.00315.48
7.1.250.0120.00615.75
7.1.240.0030.01215.77
7.1.230.0100.00715.55
7.1.220.0070.01015.89
7.1.210.1190.01115.02
7.1.200.0410.00915.26
7.1.190.1540.01315.13
7.1.180.0150.00515.25
7.1.170.0880.00615.13
7.1.160.0080.01015.19
7.1.150.0110.00815.13
7.1.140.0070.00815.17
7.1.130.1320.01015.13
7.1.120.0090.00715.03
7.1.110.0050.01215.20
7.1.100.0380.01415.12
7.1.90.0050.00915.09
7.1.80.0670.00715.04
7.1.70.0130.00814.96
7.1.60.1030.01424.09
7.1.50.0130.01323.82
7.1.40.0200.00523.99
7.1.30.0160.01923.97
7.1.20.0200.01024.14
7.1.10.0110.01215.01
7.1.00.0570.00915.06
7.0.330.0000.02015.58
7.0.320.0110.00315.22
7.0.310.0440.01014.80
7.0.300.0220.01314.72
7.0.290.0330.01014.80
7.0.280.1030.01114.73
7.0.270.1260.01014.59
7.0.260.0070.01114.59
7.0.250.0790.01114.92
7.0.240.0920.01014.91
7.0.230.1370.01114.74
7.0.220.0960.01114.65
7.0.210.0490.00514.77
7.0.200.0730.01014.84
7.0.190.0090.01014.85
7.0.180.0080.01114.74
7.0.170.1050.00814.84
7.0.160.0680.00914.82
7.0.150.0150.00314.72
7.0.140.0600.00714.88
7.0.130.0080.00914.94
7.0.120.0410.00614.93
7.0.110.0540.00214.87
7.0.100.0400.00514.93
7.0.90.0100.00614.92
7.0.80.0100.01214.80
7.0.70.0110.00714.71
7.0.60.0090.01114.91
7.0.50.0720.01114.79
7.0.40.0090.01613.92
7.0.30.0120.00713.81
7.0.20.0130.00714.00
7.0.10.0260.01114.00
7.0.00.0120.01213.91
5.6.400.0070.01417.23
5.6.390.0030.01717.16
5.6.380.0060.01617.01
5.6.370.0070.01717.24
5.6.360.0120.01217.10
5.6.350.0070.01717.42
5.6.340.0090.01217.49
5.6.330.0100.01317.43
5.6.320.0030.01717.38
5.6.310.0030.01717.31
5.6.300.0070.01417.28
5.6.290.0000.02117.13
5.6.280.0040.01917.07
5.6.270.0110.01117.34
5.6.260.0160.00317.05
5.6.250.0070.01417.12
5.6.240.0000.02317.00
5.6.230.0100.01317.33
5.6.220.0070.01717.02
5.6.210.0040.01817.04
5.6.200.0030.01816.98
5.6.190.0090.01817.32
5.6.180.0140.01017.16
5.6.170.0070.02317.09
5.6.160.0090.01517.36
5.6.150.0070.01517.32
5.6.140.0030.01616.87
5.6.130.0090.00917.07
5.6.120.0140.00717.34
5.6.110.0070.01317.06
5.6.100.0100.01416.78
5.6.90.0000.01517.16
5.6.80.0030.01716.98
5.6.70.0120.00917.08
5.6.60.0060.01617.16
5.6.50.0090.00616.99
5.6.40.0100.01317.25
5.6.30.0030.01317.39
5.6.20.0150.00617.16
5.6.10.0090.00916.83
5.6.00.0060.01617.15

preferences:
38.11 ms | 401 KiB | 5 Q