3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* NDF, 6 Oct 2014. */ 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'; } $sc = new Evidence_Hub_Shortcode_GeoMap(); var_dump( $sc->get_shortcode() );

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.0100.00318.43
8.3.50.0130.01022.04
8.3.40.0120.00318.81
8.3.30.0100.00319.18
8.3.20.0040.00420.21
8.3.10.0040.00420.56
8.3.00.0040.00418.05
8.2.180.0120.00416.75
8.2.170.0100.00722.96
8.2.160.0110.00420.35
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0110.00722.18
8.2.110.0060.00322.06
8.2.100.0040.00817.72
8.2.90.0000.00719.04
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0030.00618.16
8.2.30.0000.00719.17
8.2.20.0030.00517.57
8.2.10.0040.00417.96
8.2.00.0060.00317.74
8.1.280.0070.00725.92
8.1.270.0030.00623.79
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0050.00523.87
8.1.230.0040.00819.03
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0040.00417.22
8.1.180.0050.00218.10
8.1.170.0040.00418.59
8.1.160.0040.00421.95
8.1.150.0040.00418.78
8.1.140.0060.00317.37
8.1.130.0000.00817.68
8.1.120.0030.00717.34
8.1.110.0000.00717.27
8.1.100.0000.00817.32
8.1.90.0000.00717.38
8.1.80.0000.00717.39
8.1.70.0070.00017.28
8.1.60.0080.00017.43
8.1.50.0090.00017.49
8.1.40.0040.00417.35
8.1.30.0060.00317.59
8.1.20.0040.00417.53
8.1.10.0000.00717.51
8.1.00.0000.00817.53
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0050.00318.39
8.0.270.0030.00317.11
8.0.260.0030.00317.25
8.0.250.0000.00716.84
8.0.240.0040.00416.98
8.0.230.0070.00016.96
8.0.220.0030.00316.88
8.0.210.0000.00716.91
8.0.200.0070.00016.85
8.0.190.0000.00716.87
8.0.180.0000.00716.84
8.0.170.0090.00016.97
8.0.160.0030.00316.86
8.0.150.0000.00816.81
8.0.140.0000.00816.74
8.0.130.0000.00613.34
8.0.120.0050.00216.90
8.0.110.0040.00416.79
8.0.100.0040.00416.77
8.0.90.0000.00716.89
8.0.80.0130.00916.84
8.0.70.0070.00016.83
8.0.60.0000.00716.92
8.0.50.0020.00516.90
8.0.30.0080.01317.19
8.0.20.0100.00817.40
8.0.10.0050.00317.01
8.0.00.0080.01216.71
7.4.330.0020.00215.00
7.4.320.0000.00616.38
7.4.300.0000.00716.46
7.4.290.0030.00316.45
7.4.280.0000.00816.44
7.4.270.0040.00416.45
7.4.260.0070.00016.33
7.4.250.0000.00716.51
7.4.240.0030.00316.44
7.4.230.0030.00316.48
7.4.220.0160.01016.56
7.4.210.0110.00416.66
7.4.200.0040.00416.64
7.4.160.0060.00916.45
7.4.150.0170.00717.40
7.4.140.0090.00917.86
7.4.130.0090.00716.42
7.4.120.0130.00316.51
7.4.110.0070.01116.48
7.4.100.0070.01016.64
7.4.90.0090.00916.43
7.4.80.0130.00316.27
7.4.70.0080.01016.57
7.4.60.0070.01016.48
7.4.50.0000.00916.52
7.4.40.0040.01216.61
7.4.30.0030.01316.48
7.4.10.0130.00614.99
7.4.00.0120.00614.90
7.3.330.0000.00513.30
7.3.320.0030.00313.10
7.3.310.0030.00516.14
7.3.300.0040.00416.30
7.3.290.0030.01616.24
7.3.280.0110.00616.31
7.3.270.0100.00717.40
7.3.260.0150.00316.41
7.3.250.0020.01616.36
7.3.240.0000.01716.47
7.3.230.0130.01016.39
7.3.210.0090.00916.39
7.3.200.0000.01619.39
7.3.190.0140.00816.38
7.3.180.0090.00616.28
7.3.170.0110.01116.46
7.3.160.0140.00716.23
7.3.130.0060.01014.53
7.3.120.0040.01414.95
7.3.110.0060.01314.53
7.3.100.0120.00315.04
7.3.90.0070.00714.55
7.3.80.0060.00614.69
7.3.70.0070.00714.43
7.3.60.0060.00914.88
7.3.50.0030.00614.77
7.3.40.0040.01214.73
7.3.30.0030.00914.67
7.3.20.0000.01316.71
7.3.10.0070.00716.59
7.3.00.0070.00716.62
7.2.330.0070.01116.27
7.2.320.0030.01516.66
7.2.310.0070.01016.60
7.2.300.0000.01616.30
7.2.290.0070.01016.53
7.2.260.0070.00714.83
7.2.250.0100.00615.05
7.2.240.0040.01115.13
7.2.230.0060.00914.89
7.2.220.0070.00715.04
7.2.210.0030.00915.08
7.2.200.0060.00914.58
7.2.190.0090.00615.04
7.2.180.0040.01114.99
7.2.170.0060.00914.76
7.2.160.0040.01114.85
7.2.150.0100.00316.50
7.2.140.0040.01116.93
7.2.130.0060.01116.61
7.2.120.0000.01716.71
7.2.110.0060.00916.88
7.2.100.0060.00616.79
7.2.90.0070.01016.74
7.2.80.0060.01016.85
7.2.70.0090.00616.77
7.2.60.0090.00616.66
7.2.50.0040.01116.96
7.2.40.0070.00716.52
7.2.30.0040.01116.98
7.2.20.0070.00716.79
7.2.10.0000.01516.77
7.2.00.0050.00917.86
7.1.330.0030.00915.51
7.1.320.0100.00715.75
7.1.310.0030.00815.52
7.1.300.0000.01615.59
7.1.290.0000.01515.54
7.1.280.0100.00015.58
7.1.270.0030.00615.43
7.1.260.0030.01015.36
7.1.250.0040.00415.59
7.1.240.0040.00715.57
7.1.230.0060.00615.69
7.1.220.0030.00715.47
7.1.210.0030.01015.68
7.1.200.0050.00815.49
7.1.190.0060.00315.36
7.1.180.0000.00915.55
7.1.170.0040.01115.63
7.1.160.0040.00815.70
7.1.150.0070.00715.56
7.1.140.0060.01215.59
7.1.130.0030.01015.34
7.1.120.0000.00815.71
7.1.110.0120.00015.72
7.1.100.0030.01116.91
7.1.90.0080.00415.55
7.1.80.0000.01215.41
7.1.70.0030.01216.21
7.1.60.0030.01517.46
7.1.50.0020.01516.17
7.1.40.0050.00515.50
7.1.30.0000.00815.68
7.1.20.0060.00615.44
7.1.10.0060.00615.69
7.1.00.0030.04319.00
7.0.330.0030.00615.39
7.0.320.0060.00315.02
7.0.310.0000.01415.18
7.0.300.0030.00815.06
7.0.290.0040.01115.32
7.0.280.0030.00715.00
7.0.270.0120.00615.36
7.0.260.0050.00515.40
7.0.250.0100.00315.52
7.0.240.0000.01215.34
7.0.230.0130.00015.36
7.0.220.0000.01015.21
7.0.210.0070.00715.52
7.0.200.0050.00615.98
7.0.190.0060.00615.11
7.0.180.0000.00815.41
7.0.170.0070.00415.45
7.0.160.0030.00915.24
7.0.150.0030.01015.43
7.0.140.0040.03918.57
7.0.130.0040.00815.05
7.0.120.0000.01615.50
7.0.110.0080.00615.41
7.0.100.0040.01115.42
7.0.90.0040.00415.39
7.0.80.0040.00814.98
7.0.70.0040.00415.36
7.0.60.0040.03917.71
7.0.50.0120.03716.68
7.0.40.0100.03116.64
7.0.30.0130.04016.80
7.0.20.0140.03416.76
7.0.10.0080.04316.83
7.0.00.0050.03216.77
5.6.400.0030.01414.28
5.6.390.0070.00414.18
5.6.380.0000.01514.28
5.6.370.0090.00614.18
5.6.360.0070.00314.30
5.6.350.0040.00714.25
5.6.340.0030.00614.22
5.6.330.0070.00714.30
5.6.320.0080.00814.09
5.6.310.0070.00714.34
5.6.300.0030.01014.48
5.6.290.0060.00914.32
5.6.280.0080.03817.52
5.6.270.0070.00714.16
5.6.260.0080.00514.25
5.6.250.0040.01114.13
5.6.240.0080.00014.33
5.6.230.0030.01413.99
5.6.220.0050.00314.22
5.6.210.0100.03717.34
5.6.200.0030.02816.19
5.6.190.0050.03017.30
5.6.180.0220.03417.30
5.6.170.0190.03417.29
5.6.160.0070.02617.26
5.6.150.0070.04416.16
5.6.140.0070.04516.15
5.6.130.0030.02916.25
5.6.120.0100.03817.52
5.6.110.0070.04717.59
5.6.100.0060.02617.46
5.6.90.0130.04117.48
5.6.80.0050.04617.28
5.6.70.0000.01314.12
5.6.60.0070.00713.95
5.6.50.0100.00314.36
5.6.40.0030.00913.92
5.6.30.0100.00013.96
5.6.20.0030.01014.24
5.6.10.0060.00714.04
5.6.00.0030.01313.98
5.5.380.0070.00313.98
5.5.370.0030.01214.11
5.5.360.0050.00614.05
5.5.350.0140.04017.14
5.5.340.0060.04316.05
5.5.330.0040.03517.22
5.5.320.0230.04017.01
5.5.310.0160.03717.23
5.5.300.0100.04215.97
5.5.290.0140.04216.13
5.5.280.0030.02517.39
5.5.270.0020.02417.31
5.5.260.0150.03717.30
5.5.250.0110.03717.29
5.5.240.0080.02017.00
5.5.230.0070.00714.02
5.5.220.0030.00714.14
5.5.210.0080.00014.10
5.5.200.0110.00313.79
5.5.190.0080.00613.99
5.5.180.0100.00313.95
5.5.170.0060.00913.91
5.5.160.0040.01214.20
5.5.150.0040.00814.16
5.5.140.0030.00714.09
5.5.130.0000.01313.82
5.5.120.0100.00314.12
5.5.110.0040.01113.94
5.5.100.0000.01713.74
5.5.90.0000.01713.98
5.5.80.0040.00813.58
5.5.70.0000.01214.05
5.5.60.0030.00614.17
5.5.50.0030.00914.09
5.5.40.0030.00913.82
5.5.30.0070.01013.80
5.5.20.0040.00413.80
5.5.10.0070.00714.00
5.5.00.0070.00313.94
5.4.450.0150.03616.08
5.4.440.0370.03516.02
5.4.430.0480.03016.01
5.4.420.0630.04216.00
5.4.410.0530.03016.01
5.4.400.0100.02515.71
5.4.390.0380.03415.91
5.4.380.0180.03315.63
5.4.370.0340.04315.65
5.4.360.0300.03715.68
5.4.350.0180.03515.68
5.4.340.0130.03015.54
5.4.330.0080.00612.57
5.4.320.0090.02312.54
5.4.310.0050.02412.53
5.4.300.0060.02712.54
5.4.290.0050.03112.53
5.4.280.0080.02212.48
5.4.270.0070.02712.48
5.4.260.0040.02112.48
5.4.250.0040.02512.48
5.4.240.0040.01912.48
5.4.230.0050.02112.48
5.4.220.0050.02012.48
5.4.210.0070.02112.48
5.4.200.0050.02212.48
5.4.190.0050.02112.48
5.4.180.0040.02212.47
5.4.170.0070.01712.48
5.4.160.0080.02012.48
5.4.150.0040.02112.48
5.4.140.0070.02012.32
5.4.130.0050.02012.31
5.4.120.0030.02212.29
5.4.110.0040.02012.29
5.4.100.0060.01812.29
5.4.90.0050.02412.29
5.4.80.0050.02212.29
5.4.70.0050.01812.29
5.4.60.0060.01912.29
5.4.50.0020.02312.29
5.4.40.0070.01912.28
5.4.30.0060.01912.28
5.4.20.0070.01712.28
5.4.10.0060.01812.28
5.4.00.0030.02312.03
5.3.290.0050.03912.80
5.3.280.0070.03512.71
5.3.270.0040.04012.72
5.3.260.0060.03912.72
5.3.250.0080.03512.72
5.3.240.0020.04012.72
5.3.230.0070.03812.71
5.3.220.0060.03712.68
5.3.210.0040.04612.68
5.3.200.0070.03512.68
5.3.190.0070.04612.68
5.3.180.0040.03912.67
5.3.170.0080.05312.67
5.3.160.0110.03412.68
5.3.150.0080.03512.67
5.3.140.0050.03712.66
5.3.130.0020.04312.66
5.3.120.0070.04012.66
5.3.110.0050.04312.66
5.3.100.0070.03612.13
5.3.90.0040.03812.11
5.3.80.0070.04012.10
5.3.70.0050.03712.10
5.3.60.0030.03912.08
5.3.50.0050.03712.03
5.3.40.0070.03512.04
5.3.30.0080.03311.99
5.3.20.0050.03511.79
5.3.10.0030.03911.73
5.3.00.0050.03811.72
5.2.170.0060.0299.22
5.2.160.0030.0309.22
5.2.150.0040.0319.22
5.2.140.0050.0359.22
5.2.130.0070.0289.18
5.2.120.0040.0319.18
5.2.110.0070.0299.19
5.2.100.0040.0299.19
5.2.90.0050.0289.18
5.2.80.0030.0329.18
5.2.70.0040.0329.18
5.2.60.0050.0299.13
5.2.50.0050.0329.10
5.2.40.0070.0389.08
5.2.30.0060.0329.06
5.2.20.0030.0309.04
5.2.10.0060.0288.95
5.2.00.0060.0318.82
5.1.60.0040.0288.09
5.1.50.0040.0278.09
5.1.40.0020.0268.07
5.1.30.0030.0338.42
5.1.20.0050.0288.45
5.1.10.0080.0258.17
5.1.00.0070.0248.17
5.0.50.0010.0236.65
5.0.40.0040.0196.51
5.0.30.0020.0376.32
5.0.20.0020.0226.29
5.0.10.0030.0206.27
5.0.00.0070.0296.25
4.4.90.0020.0164.78
4.4.80.0030.0154.76
4.4.70.0010.0214.76
4.4.60.0040.0144.76
4.4.50.0050.0144.77
4.4.40.0020.0264.70
4.4.30.0050.0134.76
4.4.20.0030.0154.84
4.4.10.0050.0204.85
4.4.00.0030.0254.76
4.3.110.0040.0164.67
4.3.100.0010.0164.66
4.3.90.0030.0144.63
4.3.80.0030.0244.58
4.3.70.0040.0134.63
4.3.60.0040.0134.62
4.3.50.0040.0154.62
4.3.40.0040.0224.54
4.3.30.0030.0153.28
4.3.20.0020.0163.26
4.3.10.0030.0163.22
4.3.00.0100.0236.81

preferences:
121.42 ms | 401 KiB | 5 Q