3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0; $max = 60000; while($i < $max) { $i++; $data[md5($i)] = true; } $stime = microtime(true); $i=0; while($i < $max) { array_key_exists('notexistingkey', $data); } $time = microtime(true) - $stime; echo "Starting array_key_exists => $time\n"; $stime = microtime(true); $i=0; while($i < $max) { isset($data['notexistingkey']); } $time = microtime(true) - $stime; echo "Starting isset => $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.2.00.0132.46025.52
7.1.70.0002.50123.08
7.1.60.0132.48823.36
7.1.50.0032.49823.34
7.0.200.0372.46520.72
5.4.210.0301.74729.79
5.4.200.0261.83726.45
5.4.190.0411.91326.41
5.4.180.0441.87526.37
5.4.170.0481.91826.41
5.4.160.0352.06026.36
5.4.150.0362.02626.38
5.4.140.0391.92824.92
5.4.130.0411.90824.88
5.4.120.0341.85724.84
5.4.110.0311.75024.83
5.4.100.0311.49624.94
5.4.90.0361.56224.92
5.4.80.0341.57924.85
5.4.70.0391.37724.77
5.4.60.0211.50624.80
5.4.50.0411.41024.88
5.4.40.0361.46324.90
5.4.30.0401.54824.85
5.4.20.0311.59124.84
5.4.10.0331.60724.89
5.4.00.0401.71024.27
5.3.270.0361.37223.59
5.3.260.0441.40623.57
5.3.250.0351.22923.66
5.3.240.0401.44223.60
5.3.230.0351.38423.64
5.3.220.0351.49123.51
5.3.210.0351.22623.56
5.3.200.0250.68022.68
5.3.190.0370.60822.68
5.3.180.0380.57522.68
5.3.170.0630.80222.68
5.3.160.0520.70222.68
5.3.150.0300.57022.68
5.3.140.0330.78522.67
5.3.130.0470.67622.66
5.3.120.0790.97122.66
5.3.110.0450.80022.66
5.3.100.0470.69022.15
5.3.90.0470.88022.13
5.3.80.0610.69422.12
5.3.70.0480.87622.13
5.3.60.0410.73422.11
5.3.50.0270.79522.05
5.3.40.0600.98522.05
5.3.30.0390.82622.02
5.3.20.0521.07721.80
5.3.10.0421.14021.86
5.3.00.0470.96321.75
5.2.170.0431.17518.77
5.2.160.0371.11218.78
5.2.150.0441.58418.78
5.2.140.0521.19518.77
5.2.130.0461.25218.74
5.2.120.0341.65618.74
5.2.110.0421.39418.74
5.2.100.0431.30018.73
5.2.90.0571.34318.73
5.2.80.0441.19518.72
5.2.70.0441.54918.72
5.2.60.0641.48018.68
5.2.50.0491.61218.65
5.2.40.0451.50818.62
5.2.30.0341.42918.60
5.2.20.0521.28218.63
5.2.10.0391.19218.54
5.2.00.0321.65918.39
5.1.60.0461.44420.42
5.1.50.0451.45320.41
5.1.40.0481.56020.40
5.1.30.0461.20520.74
5.1.20.0581.47220.77
5.1.10.0811.30420.49
5.1.00.0491.46320.49
5.0.50.0551.60218.97
5.0.40.0291.41418.83
5.0.30.0471.30618.65
5.0.20.0460.99918.61
5.0.10.0371.09418.59
5.0.00.0250.87018.58
4.4.90.0431.16617.02
4.4.80.0361.04217.00
4.4.70.0421.03017.00
4.4.60.0410.88617.00
4.4.50.0240.81617.02
4.4.40.0390.82417.02
4.4.30.0550.82117.01
4.4.20.0200.86617.07
4.4.10.0300.94117.07
4.4.00.0450.92617.03
4.3.110.0621.02216.94
4.3.100.0491.18716.93
4.3.90.0411.60116.93
4.3.80.0291.64216.93
4.3.70.0411.42216.93
4.3.60.0651.59816.93
4.3.50.0381.08916.92
4.3.40.0351.32216.88
4.3.30.0441.40215.69
4.3.20.0351.39215.68
4.3.10.0271.58715.63

preferences:
33.19 ms | 401 KiB | 5 Q