3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Profile_Model_Profile { protected $_userId; protected $_email; protected $_firstName; protected $_lastName; protected $_midName; /** * @var Core_Model_File */ protected $_cvFile; /** * @var Profile_Model_Affil */ protected $_affil; public function __isset($key) { return isset($this->{'_' . self::toCamelCase($key)}); } public function __get($key) { $property = '_' . self::toCamelCase($key); if (property_exists($this, $property)) { return $property; } throw new RuntimeException(sprintf('Invalid property: %s', $property)); } public function __set($key, $value) { $key = self::toCamelCase($key); $setter = 'set' . $key; if (method_exists($this, $setter)) { return $this->{$setter}($value); } $property = '_' . $key; if (property_exists($this, $property)) { $this->{$property} = $value; return; } throw new RuntimeException(sprintf('Invalid property: %s', $property)); } /** * Transform given string to camel-case. * * @param string $str * @return string */ public static function toCamelCase($str) { if (is_array($str) && isset($str[1])) { return strtoupper($str[1]); } return preg_replace_callback( '/_(\w)/', array(__CLASS__, __FUNCTION__), (string) $str ); } } echo Profile_Model_Profile::toCamelCase('to_jest_dupa_blada_html'), "\n"; echo Profile_Model_Profile::toCamelCase('to_jest_dupa_bladaHTML');

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.40.0130.00318.87
8.3.30.0070.00720.17
8.3.20.0000.00820.22
8.3.10.0030.00921.92
8.3.00.0050.00322.52
8.2.170.0000.01422.96
8.2.160.0100.00320.65
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00819.78
8.2.110.0070.00322.32
8.2.100.0030.00819.36
8.2.90.0050.00319.34
8.2.80.0000.00719.45
8.2.70.0030.00718.00
8.2.60.0000.00818.05
8.2.50.0050.00318.07
8.2.40.0060.00318.34
8.2.30.0040.00418.24
8.2.20.0000.00818.04
8.2.10.0030.00517.88
8.2.00.0030.01017.83
8.1.270.0080.00024.66
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0040.00423.98
8.1.230.0040.00819.10
8.1.220.0050.00517.91
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0040.00418.90
8.1.160.0000.00722.22
8.1.150.0060.00318.89
8.1.140.0040.00417.67
8.1.130.0000.00717.92
8.1.120.0000.00717.68
8.1.110.0040.00417.68
8.1.100.0000.00817.61
8.1.90.0000.00817.55
8.1.80.0070.00017.52
8.1.70.0000.00717.53
8.1.60.0040.00417.68
8.1.50.0000.00717.73
8.1.40.0040.00417.68
8.1.30.0040.00417.80
8.1.20.0030.00617.75
8.1.10.0040.00417.72
8.1.00.0050.00317.54
8.0.300.0030.00618.77
8.0.290.0000.00717.18
8.0.280.0070.00018.52
8.0.270.0030.00317.38
8.0.260.0000.00817.04
8.0.250.0000.00717.14
8.0.240.0000.00817.14
8.0.230.0040.00417.07
8.0.220.0000.00717.00
8.0.210.0040.00417.09
8.0.200.0000.00717.18
8.0.190.0040.00417.05
8.0.180.0050.00217.13
8.0.170.0040.00417.03
8.0.160.0070.00017.15
8.0.150.0070.00016.97
8.0.140.0070.00016.98
8.0.130.0000.00613.41
8.0.120.0000.00816.88
8.0.110.0000.00817.03
8.0.100.0000.00816.84
8.0.90.0040.00417.00
8.0.80.0030.01217.04
8.0.70.0040.00417.07
8.0.60.0040.00416.96
8.0.50.0050.00216.90
8.0.30.0100.01217.33
8.0.20.0120.01017.42
8.0.10.0070.00017.11
8.0.00.0180.00816.90
7.4.330.0030.00315.05
7.4.320.0000.00716.85
7.4.300.0040.00416.79
7.4.290.0000.00716.74
7.4.280.0050.00516.82
7.4.270.0030.00316.80
7.4.260.0000.00916.78
7.4.250.0000.00716.77
7.4.240.0000.00816.73
7.4.230.0030.00316.68
7.4.220.0030.01416.89
7.4.210.0080.00916.72
7.4.200.0000.00716.75
7.4.190.0050.00316.89
7.4.160.0040.01316.86
7.4.150.0150.00317.40
7.4.140.0100.00817.86
7.4.130.0130.00516.92
7.4.120.0070.01116.73
7.4.110.0100.00716.73
7.4.100.0090.00916.79
7.4.90.0130.00516.68
7.4.80.0140.00519.39
7.4.70.0090.00616.75
7.4.60.0060.00916.61
7.4.50.0000.00816.49
7.4.40.0060.01022.77
7.4.30.0100.00616.51
7.4.00.0030.01015.20
7.3.330.0060.00013.35
7.3.320.0000.00613.44
7.3.310.0030.00316.37
7.3.300.0040.00416.50
7.3.290.0000.01516.53
7.3.280.0100.00516.48
7.3.270.0100.01117.40
7.3.260.0100.01016.66
7.3.250.0070.01216.72
7.3.240.0080.00816.60
7.3.230.0110.00616.71
7.3.210.0030.01516.54
7.3.200.0030.01319.39
7.3.190.0150.00316.84
7.3.180.0100.01016.57
7.3.170.0150.00016.85
7.3.160.0090.00716.54
7.3.120.0070.01015.20
7.3.110.0100.00315.34
7.3.100.0090.00314.95
7.3.90.0080.00815.16
7.3.80.0070.00714.73
7.3.70.0110.00315.06
7.3.60.0030.01315.09
7.3.50.0070.00714.91
7.3.40.0030.01414.83
7.3.30.0090.00615.05
7.3.20.0140.00017.07
7.3.10.0120.00316.66
7.3.00.0090.01016.74
7.2.330.0060.01916.81
7.2.320.0140.01316.77
7.2.310.0030.01416.77
7.2.300.0210.03216.72
7.2.290.0140.00616.64
7.2.240.0060.00915.51
7.2.230.0080.00615.15
7.2.220.0090.00615.14
7.2.210.0120.00314.92
7.2.200.0030.01315.36
7.2.190.0000.01315.15
7.2.180.0030.01215.30
7.2.170.0110.00015.01
7.2.160.0040.01115.11
7.2.150.0140.00317.12
7.2.140.0070.01017.05
7.2.130.0040.01516.80
7.2.120.0120.01017.03
7.2.110.0070.01116.83
7.2.100.0100.00817.09
7.2.90.0100.01016.97
7.2.80.0150.00816.90
7.2.70.0160.01017.04
7.2.60.0200.00416.98
7.2.50.0190.00916.80
7.2.40.0130.00516.92
7.2.30.0180.00717.14
7.2.20.0100.00716.76
7.2.10.0040.01016.90
7.2.00.0070.00717.76
7.1.330.0060.00915.55
7.1.320.0100.00615.83
7.1.310.0030.00616.05
7.1.300.0030.01316.00
7.1.290.0030.01215.89
7.1.280.0100.00315.86
7.1.270.0100.00715.96
7.1.260.0070.00416.09
7.1.250.0140.00615.74
7.1.100.0110.00417.96
7.1.70.0030.00517.24
7.1.60.0140.00319.43
7.1.50.0130.01016.89
7.1.00.0030.05722.55
7.0.200.0000.01216.83
7.0.140.0030.07722.13
7.0.60.0070.06720.07
7.0.50.0130.07017.91
7.0.40.0130.03720.07
7.0.30.0130.04720.14
7.0.20.0270.04320.08
7.0.10.0300.05020.17
7.0.00.0100.05720.25
5.6.280.0070.07021.11
5.6.210.0030.06020.76
5.6.200.0070.08018.29
5.6.190.0200.07320.37
5.6.180.0130.04320.61
5.6.170.0470.06720.58
5.6.160.0000.04320.52
5.6.150.0070.08318.22
5.6.140.0100.03318.28
5.6.130.0000.08018.17
5.6.120.0200.04320.96
5.6.110.0100.07721.09
5.6.100.0130.07321.12
5.6.90.0070.08721.04
5.6.80.0070.08020.42
5.6.70.0370.06720.53
5.5.350.0070.07720.39
5.5.340.0100.03718.05
5.5.330.0130.07720.34
5.5.320.0270.06720.24
5.5.310.0270.08020.23
5.5.300.0100.07318.05
5.5.290.0100.08017.95
5.5.280.0130.07320.88
5.5.270.0130.06320.78
5.5.260.0070.05720.84
5.5.250.0100.08020.79
5.5.240.0000.08020.04
5.4.450.0730.06019.59
5.4.440.0930.07019.38
5.4.430.0670.06319.59
5.4.420.0770.05019.61
5.4.410.0930.05319.45
5.4.400.1300.05718.78
5.4.390.0800.06318.79
5.4.380.0130.06018.71
5.4.370.0200.04318.63
5.4.360.0200.04318.63
5.4.350.0070.03612.03
5.4.340.0060.04112.03
5.4.320.0040.04612.51
5.4.310.0060.04312.51
5.4.300.0040.03812.52
5.4.290.0060.04012.50
5.4.280.0030.03812.41
5.4.270.0080.03312.41
5.4.260.0080.04012.40
5.4.250.0060.03712.41
5.4.240.0170.04718.96
5.4.230.0170.07018.98
5.4.220.0070.06318.95
5.4.210.0070.05318.77
5.4.200.0100.07318.95
5.4.190.0070.06718.99
5.4.180.0130.07018.83
5.4.170.0070.05718.98
5.4.160.0170.05018.78
5.4.150.0100.05718.78
5.4.140.0230.04316.57
5.4.130.0130.04316.35
5.4.120.0100.05316.38
5.4.110.0100.05016.52
5.4.100.0130.06016.42
5.4.90.0100.07316.39
5.4.80.0030.05016.42
5.4.70.0170.04016.39
5.4.60.0100.05316.45
5.4.50.0070.05016.53
5.4.40.0030.05316.53
5.4.30.0100.05716.49
5.4.20.0200.04716.52
5.4.10.0070.05016.46
5.4.00.0030.06015.81
5.3.290.0080.05212.80
5.3.280.0100.05714.52
5.3.270.0100.05714.64
5.3.260.0030.06714.68
5.3.250.0130.06314.70
5.3.240.0100.05714.61
5.3.230.0070.05014.51
5.3.220.0100.05014.48
5.3.210.0100.06714.76
5.3.200.0070.05014.41
5.3.190.0170.06714.67
5.3.180.0030.05314.75
5.3.170.0000.05714.65
5.3.160.0000.05714.66
5.3.150.0200.05014.56
5.3.140.0070.05014.66
5.3.130.0130.05314.53
5.3.120.0000.06014.57
5.3.110.0030.06014.73
5.3.100.0100.06713.88
5.3.90.0130.05713.86
5.3.80.0130.06314.11
5.3.70.0070.05014.12
5.3.60.0030.06014.10
5.3.50.0100.06714.05
5.3.40.0100.05314.05
5.3.30.0100.04314.10
5.3.20.0100.04313.80
5.3.10.0030.06313.73
5.3.00.0070.06013.66
5.2.170.0000.04711.07
5.2.160.0130.04311.25
5.2.150.0030.04710.99
5.2.140.0100.04311.25
5.2.130.0000.04311.28
5.2.120.0070.04311.12
5.2.110.0100.03711.34
5.2.100.0030.04711.11
5.2.90.0070.04011.20
5.2.80.0170.04311.19
5.2.70.0100.04011.07
5.2.60.0100.05311.14
5.2.50.0070.05011.04
5.2.40.0000.04311.10
5.2.30.0030.04310.97
5.2.20.0070.04011.06
5.2.10.0170.05710.94
5.2.00.0000.04710.57
5.1.60.0030.03710.05
5.1.50.0030.03310.07
5.1.40.0070.03010.15
5.1.30.0100.03310.43
5.1.20.0030.04310.43
5.1.10.0070.04710.00
5.1.00.0070.03710.06
5.0.50.0100.0278.63
5.0.40.0030.0278.27
5.0.30.0130.0408.48
5.0.20.0030.0278.17
5.0.10.0070.0238.25
5.0.00.0000.0438.27
4.4.90.0070.0206.55
4.4.80.0100.0236.55
4.4.70.0000.0306.55
4.4.60.0070.0176.55
4.4.50.0000.0276.55
4.4.40.0030.0336.55
4.4.30.0030.0206.55
4.4.20.0000.0236.55
4.4.10.0000.0276.55
4.4.00.0030.0306.55
4.3.110.0070.0176.55
4.3.100.0100.0136.55
4.3.90.0070.0136.55
4.3.80.0070.0276.55
4.3.70.0030.0276.55
4.3.60.0070.0176.55
4.3.50.0030.0206.54
4.3.40.0100.0276.54
4.3.30.0000.0236.54
4.3.20.0000.0236.54
4.3.10.0030.0206.54
4.3.00.0000.0236.84

preferences:
40.18 ms | 400 KiB | 5 Q