3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Initial Configuration $isset = true; $array = array(); $notSetArray = array(0=>''); $string = ''; // Test Source function Test9_12() { global $x; /* The Test */ $t = microtime(true); while($i < 2000) { isSet($notSet); is_array($notSet); ++$i; } return (microtime(true) - $t); } // Variable Clean-up function Test9_End() { global $isset, $array, $string; unset($isset, $array, $string); } ?>

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.0060.01214.86
7.4.00.0060.01214.63
7.3.130.0070.00714.65
7.3.120.0000.01914.67
7.3.110.0080.01214.32
7.3.100.0060.00614.56
7.3.90.0040.00814.54
7.3.80.0090.00614.88
7.3.70.0050.00514.66
7.3.60.0050.00314.68
7.3.50.0070.00714.72
7.3.40.0050.00514.58
7.3.30.0030.01014.59
7.3.20.0090.00316.47
7.3.10.0100.00316.53
7.3.00.0040.00416.61
7.2.260.0000.01914.70
7.2.250.0180.00014.82
7.2.240.0080.00814.48
7.2.230.0000.01214.93
7.2.220.0040.01114.80
7.2.210.0040.00414.48
7.2.200.0080.00314.80
7.2.190.0090.00314.76
7.2.180.0040.00714.67
7.2.170.0100.00014.86
7.2.160.0060.00914.57
7.2.150.0100.00616.86
7.2.140.0060.00916.53
7.2.130.0000.01416.65
7.2.120.0060.00916.44
7.2.110.0070.00716.68
7.2.100.0100.00316.71
7.2.90.0100.00316.71
7.2.80.0070.00716.70
7.2.70.0060.00616.84
7.2.60.0100.00716.64
7.2.50.0060.00616.78
7.2.40.0110.00416.50
7.2.30.0040.01116.45
7.2.20.0100.00316.81
7.2.10.0040.01116.86
7.2.00.0000.01116.47
7.1.330.0030.01015.54
7.1.320.0030.01015.60
7.1.310.0000.01115.51
7.1.300.0090.00615.59
7.1.290.0000.00815.46
7.1.280.0030.01015.70
7.1.270.0080.00615.37
7.1.260.0030.00915.59
7.1.250.0000.00915.33
7.1.240.0000.00815.20
7.1.230.0070.00415.76
7.1.220.0100.00315.61
7.1.210.0030.00715.54
7.1.200.0070.00715.71
7.1.190.0000.01115.63
7.1.180.0000.01315.59
7.1.170.0060.00615.70
7.1.160.0070.00715.29
7.1.150.0040.00415.41
7.1.140.0120.00315.66
7.1.130.0040.01115.63
7.1.120.0060.00615.32
7.1.110.0000.01215.74
7.1.100.0100.00315.39
7.1.90.0060.00615.81
7.1.80.0090.00315.49
7.1.70.0020.01016.18
7.1.60.0080.00317.68
7.1.50.0050.00816.06
7.1.40.0040.00815.35
7.1.30.0000.01315.33
7.1.20.0080.00415.63
7.1.10.0080.00315.55
7.1.00.0030.04119.08
7.0.330.0030.01215.03
7.0.320.0070.00715.11
7.0.310.0030.01015.23
7.0.300.0000.01215.32
7.0.290.0030.00915.23
7.0.280.0030.00715.38
7.0.270.0080.00015.44
7.0.260.0070.00715.33
7.0.250.0040.00415.30
7.0.240.0040.00715.30
7.0.230.0060.00815.04
7.0.220.0000.01515.27
7.0.210.0030.01215.43
7.0.200.0490.00415.87
7.0.190.0090.00315.36
7.0.180.0000.00815.14
7.0.170.0100.00315.10
7.0.160.0030.01015.16
7.0.150.0100.00015.27
7.0.140.0080.03718.62
7.0.130.0070.00715.40
7.0.120.0000.01815.17
7.0.110.0000.01515.17
7.0.100.0040.01115.31
7.0.90.0070.01015.39
7.0.80.0070.04817.66
7.0.70.0100.04617.55
7.0.60.0080.02817.56
7.0.50.0070.04517.72
7.0.40.0060.04716.62
7.0.30.0030.02716.62
7.0.20.0100.04216.68
7.0.10.0100.04316.64
7.0.00.0050.04816.56
5.6.400.0030.00714.16
5.6.390.0070.00414.28
5.6.380.0000.00913.95
5.6.370.0030.00614.06
5.6.360.0070.00314.01
5.6.350.0080.00314.41
5.6.340.0070.00714.44
5.6.330.0070.00714.45
5.6.320.0070.00713.88
5.6.310.0060.00914.14
5.6.300.0030.01114.03
5.6.290.0000.00914.20
5.6.280.0030.04017.69
5.6.270.0040.01414.14
5.6.260.0120.00314.53
5.6.250.0110.00714.16
5.6.240.0070.00314.04
5.6.230.0050.02817.33
5.6.220.0070.04017.41
5.6.210.0070.04317.37
5.6.200.0080.04117.65
5.6.190.0080.02317.68
5.6.180.0100.03917.54
5.6.170.0050.03217.59
5.6.160.0010.04317.59
5.6.150.0070.04317.68
5.6.140.0100.04017.61
5.6.130.0080.04417.73
5.6.120.0030.03817.66
5.6.110.0080.02417.74
5.6.100.0050.03817.67
5.6.90.0130.03817.61
5.6.80.0030.04817.26
5.6.70.0090.04317.14
5.6.60.0030.03717.28
5.6.50.0050.02217.23
5.6.40.0050.04417.26
5.6.30.0080.02817.27
5.6.20.0070.04017.38
5.6.10.0060.04517.24
5.6.00.0070.03717.08
5.5.380.0030.00514.10
5.5.370.0030.03417.24
5.5.360.0050.04517.37
5.5.350.0080.04317.08
5.5.340.0030.03317.34
5.5.330.0070.04017.45
5.5.320.0050.02817.45
5.5.310.0130.04017.47
5.5.300.0130.02017.24
5.5.290.0080.04017.38
5.5.280.0070.04717.58
5.5.270.0090.03717.46
5.5.260.0030.03117.29
5.5.250.0090.04217.24
5.5.240.0070.04417.19
5.5.230.0080.04217.01
5.5.220.0070.04317.02
5.5.210.0050.02816.98
5.5.200.0050.02316.95
5.5.190.0100.03417.24
5.5.180.0080.02716.99
5.5.170.0000.01013.73
5.5.160.0060.04017.02
5.5.150.0070.04217.14
5.5.140.0060.04117.10
5.5.130.0050.03617.22
5.5.120.0050.03617.02
5.5.110.0120.03717.10
5.5.100.0110.03817.05
5.5.90.0150.02516.93
5.5.80.0060.02216.84
5.5.70.0100.03516.99
5.5.60.0080.03916.82
5.5.50.0100.03816.92
5.5.40.0050.02817.07
5.5.30.0070.03917.05
5.5.20.0050.04217.04
5.5.10.0020.03416.92
5.5.00.0050.02817.00
5.4.450.0060.04515.20
5.4.440.0020.04615.29
5.4.430.0060.03515.18
5.4.420.0070.04215.18
5.4.410.0050.04115.04
5.4.400.0050.04314.83
5.4.390.0100.03014.82
5.4.380.0070.02215.04
5.4.370.0080.02514.95
5.4.360.0030.02314.96
5.4.350.0090.01915.01
5.4.340.0120.03014.94
5.4.330.0030.00710.89
5.4.320.0000.04515.04
5.4.310.0070.02715.07
5.4.300.0050.02714.81
5.4.290.0000.04314.92
5.4.280.0030.03814.94
5.4.270.0020.03014.96
5.4.260.0100.04014.82
5.4.250.0100.02714.74
5.4.240.0030.02814.90
5.4.230.0080.03514.87
5.4.220.0050.04014.88
5.4.210.0030.03314.90
5.4.200.0030.04314.92
5.4.190.0100.02315.03
5.4.180.0070.03814.81
5.4.170.0020.04014.82
5.4.160.0060.02714.95
5.4.150.0060.04114.80
5.4.140.0030.02613.63
5.4.130.0030.03113.56
5.4.120.0050.02013.65
5.4.110.0050.04113.48
5.4.100.0090.02713.51
5.4.90.0020.03013.73
5.4.80.0070.03913.70
5.4.70.0070.03713.63
5.4.60.0020.04113.56
5.4.50.0080.04013.72
5.4.40.0060.04113.47
5.4.30.0040.03313.56
5.4.20.0030.04213.64
5.4.10.0030.04113.57
5.4.00.0060.03313.32
5.3.290.0070.02212.66
5.3.280.0030.02712.54
5.3.270.0050.04112.67
5.3.260.0100.03712.52
5.3.250.0050.02912.65
5.3.240.0150.03312.54
5.3.230.0070.02312.55
5.3.220.0030.02312.42
5.3.210.0030.03012.52
5.3.200.0070.02612.34
5.3.190.0070.04212.41
5.3.180.0020.03412.57
5.3.170.0090.02512.63
5.3.160.0060.04112.59
5.3.150.0080.02612.45
5.3.140.0070.04012.38
5.3.130.0050.02812.51
5.3.120.0040.04112.48
5.3.110.0060.02512.42
5.3.100.0050.04012.32
5.3.90.0030.02712.38
5.3.80.0120.03312.03
5.3.70.0050.04012.25
5.3.60.0020.04412.20
5.3.50.0030.04312.04
5.3.40.0050.01912.12
5.3.30.0050.02311.99
5.3.20.0060.02112.04
5.3.10.0040.02811.77
5.3.00.0040.04211.96
5.2.170.0100.06011.78
5.2.160.0030.03311.78
5.2.150.0070.05711.78
5.2.140.0030.04311.78
5.2.130.0000.03311.78
5.2.120.0030.06311.78
5.2.110.0070.06011.78
5.2.100.0000.06011.78
5.2.90.0070.03311.78
5.2.80.0070.03711.78
5.2.70.0070.03311.78
5.2.60.0030.03011.78
5.2.50.0100.04311.78
5.2.40.0130.03011.78
5.2.30.0030.06011.78
5.2.20.0030.05311.78
5.2.10.0070.06011.78
5.2.00.0100.05011.78
5.1.60.0070.04311.78
5.1.50.0000.05311.78
5.1.40.0000.03311.78
5.1.30.0070.04311.78
5.1.20.0100.05311.78
5.1.10.0100.05011.78
5.1.00.0000.04311.78
5.0.50.0030.02711.78
5.0.40.0000.02711.78
5.0.30.0030.06711.78
5.0.20.0070.04011.78
5.0.10.0070.03711.78
5.0.00.0030.04711.78
4.4.90.0000.01711.78
4.4.80.0030.03311.78
4.4.70.0000.03311.78
4.4.60.0100.02011.78
4.4.50.0000.02711.78
4.4.40.0000.03711.78
4.4.30.0000.02711.78
4.4.20.0070.03311.78
4.4.10.0070.01711.78
4.4.00.0000.05711.78
4.3.110.0030.03311.78
4.3.100.0030.02711.78
4.3.90.0030.03311.78
4.3.80.0000.05011.78
4.3.70.0030.03311.78
4.3.60.0030.02711.78
4.3.50.0030.02311.78
4.3.40.0030.05311.78
4.3.30.0000.03311.78
4.3.20.0000.03711.78
4.3.10.0030.02011.78
4.3.00.0000.01711.78

preferences:
38.71 ms | 401 KiB | 5 Q