3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* WordPress shortcodes test. NDF, 6 Oct 2014. */ $sc = new Hub_Shortcode_GeoMap(); var_dump( $sc->get_shortcode() ); abstract class Hub_Shortcode { const SHORTCODE = 'evidence_hub_shortcode'; public function __construct() { //add_shortcode( $this->get_shortcode(), array( &$this, 'shortcode' )); // ... } public function get_shortcode() { $class = get_class( $this ); return property_exists( $this, 'shortcode' ) ? $this->shortcode : static::SHORTCODE; } } class Hub_Shortcode_GeoMap extends Hub_Shortcode { const SHORTCODE = 'geomap'; } //End.

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.0070.00718.16
8.3.50.0160.00621.94
8.3.40.0100.00718.84
8.3.30.0140.00019.12
8.3.20.0040.00420.34
8.3.10.0040.00420.46
8.3.00.0040.00419.56
8.2.180.0180.00416.59
8.2.170.0120.00322.96
8.2.160.0030.01020.22
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.01422.25
8.2.110.0040.00422.24
8.2.100.0110.00017.72
8.2.90.0050.00218.83
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0080.00017.68
8.2.50.0060.00318.07
8.2.40.0050.00318.09
8.2.30.0000.00719.32
8.2.20.0020.00517.74
8.2.10.0000.00718.07
8.2.00.0040.00417.56
8.1.280.0060.01125.92
8.1.270.0060.00322.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.83
8.1.230.0040.00719.00
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0050.00318.54
8.1.160.0000.00922.02
8.1.150.0040.00418.86
8.1.140.0040.00417.49
8.1.130.0030.00517.83
8.1.120.0030.00617.51
8.1.110.0000.00717.38
8.1.100.0030.00317.50
8.1.90.0000.00717.46
8.1.80.0030.00317.36
8.1.70.0030.00317.40
8.1.60.0040.00417.49
8.1.50.0060.00317.43
8.1.40.0080.00017.54
8.1.30.0030.00617.48
8.1.20.0040.00417.66
8.1.10.0000.00817.55
8.1.00.0040.00417.54
8.0.300.0030.00618.77
8.0.290.0090.00016.75
8.0.280.0030.00318.37
8.0.270.0040.00417.24
8.0.260.0030.00317.30
8.0.250.0040.00416.91
8.0.240.0040.00416.98
8.0.230.0000.00716.93
8.0.220.0000.00716.89
8.0.210.0000.00716.86
8.0.200.0000.00716.94
8.0.190.0000.00716.95
8.0.180.0000.00716.83
8.0.170.0080.00016.89
8.0.160.0000.00716.88
8.0.150.0070.00016.85
8.0.140.0100.00016.88
8.0.130.0000.00713.25
8.0.120.0040.00416.89
8.0.110.0000.00716.96
8.0.100.0030.00316.88
8.0.90.0000.00816.95
8.0.80.0130.00316.84
8.0.70.0030.00616.68
8.0.60.0000.00816.73
8.0.50.0040.00416.88
8.0.30.0140.00617.06
8.0.20.0100.00817.40
8.0.10.0030.00616.99
8.0.00.0050.01216.70
7.4.330.0000.00515.00
7.4.320.0030.00316.65
7.4.300.0060.00016.61
7.4.290.0000.00716.52
7.4.280.0050.00316.61
7.4.270.0030.00316.43
7.4.260.0040.00416.63
7.4.250.0070.00016.52
7.4.240.0030.00316.60
7.4.230.0040.00416.30
7.4.220.0060.01216.46
7.4.210.0060.00716.47
7.4.200.0000.00816.64
7.4.160.0040.01116.39
7.4.150.0070.01717.40
7.4.140.0120.00617.86
7.4.130.0100.00716.48
7.4.120.0050.01216.44
7.4.110.0170.00316.54
7.4.100.0130.00316.62
7.4.90.0130.00316.41
7.4.80.0170.00616.57
7.4.70.0110.00816.57
7.4.60.0060.01016.49
7.4.50.0000.00916.34
7.4.40.0080.00816.45
7.4.30.0070.01416.41
7.4.00.0030.01215.02
7.3.330.0000.00613.37
7.3.320.0030.00313.25
7.3.310.0070.00016.33
7.3.300.0030.00316.21
7.3.290.0110.00316.25
7.3.280.0080.00916.29
7.3.270.0120.00617.40
7.3.260.0130.01016.48
7.3.250.0140.00716.41
7.3.240.0130.00616.25
7.3.230.0150.00316.50
7.3.210.0030.01416.41
7.3.200.0130.00319.39
7.3.190.0060.01216.37
7.3.180.0070.01016.14
7.3.170.0140.00716.27
7.3.160.0030.01316.46
7.3.10.0070.00715.82
7.3.00.0100.01116.47
7.2.330.0060.01016.41
7.2.320.0080.01616.41
7.2.310.0060.01216.63
7.2.300.0130.00316.71
7.2.290.0030.01316.80
7.2.130.0130.00316.43
7.2.120.0180.00015.85
7.2.110.0070.01716.14
7.2.100.0120.01216.22
7.2.90.0110.00716.63
7.2.80.0130.00616.27
7.2.70.0130.00916.36
7.2.60.0140.00716.10
7.2.50.0140.01016.38
7.2.40.0170.00316.39
7.2.30.0110.01116.08
7.2.20.0090.00916.37
7.2.10.0110.01515.89
7.2.00.0100.00517.95
7.1.250.0030.01014.99
7.1.100.0040.00717.96
7.1.70.0040.00417.03
7.1.60.0120.01219.32
7.1.50.0050.00516.88
7.1.00.0070.07322.40
7.0.200.0020.00716.57
7.0.140.0030.06722.12
7.0.60.0070.09020.00
7.0.50.0000.05017.85
7.0.40.0100.07320.15
7.0.30.0470.06320.17
7.0.20.0300.07320.08
7.0.10.0030.05320.06
7.0.00.0070.07020.07
5.6.280.0030.07320.93
5.6.210.0170.07020.57
5.6.200.0070.04718.13
5.6.190.0130.07720.42
5.6.180.0530.07320.58
5.6.170.0400.07020.71
5.6.160.0130.05320.54
5.6.150.0030.08718.28
5.6.140.0130.04018.18
5.6.130.0170.06718.12
5.6.120.0100.05320.94
5.6.110.0030.08721.10
5.6.100.0100.07720.97
5.6.90.0070.07720.95
5.6.80.0030.04720.41
5.5.350.0230.07320.39
5.5.340.0070.04717.97
5.5.330.0070.08320.25
5.5.320.0530.06720.34
5.5.310.0200.06720.24
5.5.300.0100.07318.04
5.5.290.0000.08017.96
5.5.280.0030.05720.74
5.5.270.0030.04020.93
5.5.260.0030.09320.65
5.5.250.0100.05720.50
5.5.240.0130.07320.19
5.4.450.0230.06019.63
5.4.440.0970.05319.45
5.4.430.1000.05019.57
5.4.420.0700.05719.58
5.4.410.0900.06319.34
5.4.400.0130.06719.30
5.4.390.0930.06019.22
5.4.380.0230.06718.59
5.4.370.0270.06318.77
5.4.360.0470.06018.79
5.4.350.0330.08018.84
5.4.340.0600.05718.81
5.4.320.0070.03512.51
5.4.310.0050.03912.50
5.4.300.0060.04012.50
5.4.290.0050.03812.50
5.4.280.0110.03012.40
5.4.270.0070.03412.40
5.4.260.0060.03612.40
5.4.250.0060.03712.39
5.4.240.0070.03312.40
5.4.230.0080.03412.39
5.4.220.0060.03712.39
5.4.210.0080.03312.39
5.4.200.0050.05212.39
5.4.190.0090.03312.38
5.4.180.0060.03712.39
5.4.170.0060.03812.40
5.4.160.0060.03612.39
5.4.150.0060.03512.39
5.4.140.0050.03812.07
5.4.130.0030.03812.06
5.4.120.0060.04112.02
5.4.110.0090.03312.01
5.4.100.0060.03812.02
5.4.90.0040.04212.01
5.4.80.0060.03712.02
5.4.70.0020.03812.01
5.4.60.0050.03512.02
5.4.50.0070.03312.01
5.4.40.0070.03312.00
5.4.30.0050.03612.00
5.4.20.0100.03912.00
5.4.10.0060.03712.00
5.4.00.0030.03811.49
5.3.290.0070.03912.80
5.3.280.0050.04412.71
5.3.270.0060.03912.72
5.3.260.0100.05012.72
5.3.250.0070.03912.72
5.3.240.0050.04212.71
5.3.230.0070.03612.71
5.3.220.0110.04012.68
5.3.210.0070.04512.68
5.3.200.0070.03412.68
5.3.190.0090.04012.67
5.3.180.0080.03312.67
5.3.170.0030.03912.67
5.3.160.0060.03712.67
5.3.150.0060.04112.67
5.3.140.0050.03712.66
5.3.130.0030.04112.65
5.3.120.0040.04012.66
5.3.110.0040.04012.66
5.3.100.0070.03612.13
5.3.90.0060.03612.11
5.3.80.0070.04212.09
5.3.70.0060.03712.10
5.3.60.0030.04412.08
5.3.50.0060.03712.04
5.3.40.0060.03712.03
5.3.30.0060.03711.98
5.3.20.0100.03611.77
5.3.10.0090.04711.73
5.3.00.0100.04711.72
5.2.170.0060.0419.22
5.2.160.0080.0319.23
5.2.150.0060.0299.23
5.2.140.0080.0369.22
5.2.130.0080.0389.18
5.2.120.0050.0339.18
5.2.110.0060.0289.19
5.2.100.0100.0369.19
5.2.90.0070.0369.18
5.2.80.0040.0349.18
5.2.70.0070.0289.18
5.2.60.0060.0379.13
5.2.50.0030.0319.10
5.2.40.0060.0279.08
5.2.30.0040.0319.05
5.2.20.0040.0299.04
5.2.10.0040.0288.95
5.2.00.0060.0288.81
5.1.60.0050.0328.10
5.1.50.0090.0238.09
5.1.40.0040.0358.07
5.1.30.0010.0338.43
5.1.20.0050.0258.44
5.1.10.0040.0258.18
5.1.00.0040.0258.17
5.0.50.0030.0236.65
5.0.40.0030.0206.51
5.0.30.0040.0306.32
5.0.20.0030.0196.29
5.0.10.0040.0246.27
5.0.00.0030.0376.26
4.4.90.0040.0144.78
4.4.80.0020.0164.75
4.4.70.0030.0154.75
4.4.60.0030.0144.75
4.4.50.0030.0174.77
4.4.40.0020.0314.71
4.4.30.0030.0154.75
4.4.20.0040.0184.84
4.4.10.0040.0164.85
4.4.00.0030.0254.75
4.3.110.0020.0174.67
4.3.100.0030.0144.67
4.3.90.0030.0144.64
4.3.80.0040.0244.59
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0040.0154.63
4.3.40.0020.0254.54
4.3.30.0000.0173.29
4.3.20.0030.0153.26
4.3.10.0020.0153.22
4.3.00.0100.0236.81

preferences:
50.88 ms | 401 KiB | 5 Q