3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array('customer-test1' => 1, 'customer-test2' => 2); function getPost($param) { global $test; echo addslashes($param)." = ".$test[$param]."<br/>"; return isset($test[$param]) ? $test[$param] : NULL; } class Customer { private $test1; private $test2; function __construct() { } } $object = new Customer(); $arr = (array)$object; $newArr = array(); foreach($arr as $key => $val) { $newKey = str_replace(get_class($object), "", $key); $newArr[$newKey] = getPost(strtolower(get_class($object))."-".$newKey); }

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.70.0070.00716.88
8.3.60.0140.00718.43
8.3.50.0130.00722.04
8.3.40.0110.00319.02
8.3.30.0120.00318.78
8.3.20.0040.00420.29
8.3.10.0080.00020.57
8.3.00.0000.00818.73
8.2.190.0130.00316.75
8.2.180.0070.01418.79
8.2.170.0120.00922.96
8.2.160.0030.01020.25
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0070.00321.19
8.2.100.0040.00817.91
8.2.90.0040.00418.16
8.2.80.0060.00319.95
8.2.70.0000.00817.75
8.2.60.0050.00317.61
8.2.50.0000.00817.88
8.2.40.0040.00420.42
8.2.30.0030.00619.45
8.2.20.0050.00217.68
8.2.10.0030.00518.23
8.2.00.0070.00018.00
8.1.280.0120.00325.92
8.1.270.0050.00323.88
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0030.00622.05
8.1.230.0040.00722.02
8.1.220.0040.00417.74
8.1.210.0000.01018.77
8.1.200.0000.00817.22
8.1.190.0080.00017.36
8.1.180.0000.00818.10
8.1.170.0000.00818.59
8.1.160.0050.00220.80
8.1.150.0040.00418.86
8.1.140.0070.00019.43
8.1.130.0030.00317.71
8.1.120.0000.00717.52
8.1.110.0000.00717.32
8.1.100.0040.00417.43
8.1.90.0000.00817.48
8.1.80.0070.00017.49
8.1.70.0040.00417.48
8.1.60.0030.00617.51
8.1.50.0060.00317.36
8.1.40.0100.00517.41
8.1.30.0040.00417.62
8.1.20.0040.00417.63
8.1.10.0000.00817.57
8.1.00.0000.00717.56
8.0.300.0000.00819.98
8.0.290.0050.00216.88
8.0.280.0000.00718.36
8.0.270.0000.00817.26
8.0.260.0000.00817.31
8.0.250.0030.00317.04
8.0.240.0000.00717.03
8.0.230.0030.00317.09
8.0.220.0080.00016.99
8.0.210.0080.00016.86
8.0.200.0000.00616.94
8.0.190.0060.00317.04
8.0.180.0080.00016.89
8.0.170.0000.00817.03
8.0.160.0030.00416.94
8.0.150.0030.00316.94
8.0.140.0050.00216.93
8.0.130.0000.00813.34
8.0.120.0000.00816.90
8.0.110.0000.00816.96
8.0.100.0040.00417.07
8.0.90.0040.00416.94
8.0.80.0100.01016.96
8.0.70.0040.00416.99
8.0.60.0070.00016.91
8.0.50.0000.00816.82
8.0.30.0130.00516.98
8.0.20.0070.01417.40
8.0.10.0040.00417.07
8.0.00.0090.01016.77
7.4.330.0050.00016.82
7.4.320.0060.00016.63
7.4.300.0000.00616.45
7.4.290.0070.00016.58
7.4.280.0000.00716.55
7.4.270.0070.00016.52
7.4.260.0050.00316.49
7.4.250.0030.00516.45
7.4.240.0000.00816.51
7.4.230.0080.00016.49
7.4.220.0150.01216.54
7.4.210.0110.00616.49
7.4.200.0000.00816.58
7.4.160.0120.00316.52
7.4.150.0100.00717.40
7.4.140.0090.00917.86
7.4.130.0110.00616.59
7.4.120.0070.01116.47
7.4.110.0130.00616.59
7.4.100.0150.00916.46
7.4.90.0120.00416.58
7.4.80.0070.01419.39
7.4.70.0100.00616.62
7.4.60.0030.01216.57
7.4.50.0000.01516.64
7.4.40.0130.00816.57
7.4.30.0040.01216.63
7.4.00.0070.01115.18
7.3.330.0020.00313.50
7.3.320.0020.00213.38
7.3.310.0080.00016.41
7.3.300.0030.00316.31
7.3.290.0070.00016.43
7.3.280.0110.00616.46
7.3.270.0210.00617.40
7.3.260.0130.01016.56
7.3.250.0090.00816.39
7.3.240.0090.01116.51
7.3.230.0070.01016.39
7.3.210.0140.00716.60
7.3.200.0140.00916.45
7.3.190.0090.01016.31
7.3.180.0100.00616.49
7.3.170.0060.01216.41
7.3.160.0110.00716.46
7.3.10.0110.00416.52
7.3.00.0070.00716.81
7.2.330.0060.01216.32
7.2.320.0190.00616.82
7.2.310.0110.01216.79
7.2.300.0060.01116.81
7.2.290.0060.00916.75
7.2.130.0090.00617.01
7.2.120.0040.01217.05
7.2.110.0060.00916.73
7.2.100.0040.01117.02
7.2.90.0920.01115.58
7.2.80.0940.00715.78
7.2.70.1090.01415.87
7.2.60.0610.01016.26
7.2.50.1060.01316.02
7.2.40.1050.00615.92
7.2.30.1060.00616.09
7.2.20.0980.01116.04
7.2.10.1020.01615.98
7.2.00.0700.01016.97
7.1.250.0040.01215.69
7.1.210.1820.01013.77
7.1.200.0910.01014.86
7.1.190.1630.00613.85
7.1.180.1970.01513.68
7.1.170.1810.00713.81
7.1.160.3140.00313.98
7.1.150.2030.01114.15
7.1.140.2270.01013.73
7.1.130.1690.01313.89
7.1.120.1710.00713.86
7.1.110.1940.00913.91
7.1.100.0940.00616.13
7.1.90.2850.00313.44
7.1.80.2540.00613.56
7.1.70.0850.00815.34
7.1.60.1220.01325.72
7.1.50.0740.01124.37
7.1.40.1410.00331.74
7.1.30.1490.01631.79
7.1.20.1380.01231.82
7.1.10.1220.00314.02
7.1.00.0560.04118.03
7.0.310.1810.00313.32
7.0.300.2040.00613.14
7.0.290.2280.00613.61
7.0.280.2070.00613.62
7.0.270.1820.00313.60
7.0.260.1510.01313.62
7.0.250.1570.01213.77
7.0.240.1720.00313.69
7.0.230.2620.00313.75
7.0.220.2580.00713.69
7.0.210.1540.01813.70
7.0.200.1200.01015.27
7.0.190.1510.00313.53
7.0.180.1160.00713.70
7.0.170.1150.00313.49
7.0.160.3120.00713.83
7.0.150.0890.01013.68
7.0.140.1070.00913.71
7.0.130.0860.01013.60
7.0.120.0980.01313.84
7.0.110.1120.00313.62
7.0.100.0930.00313.63
7.0.90.0910.00713.48
7.0.80.0930.01313.58
7.0.70.0780.01013.66
7.0.60.0490.04216.61
7.0.50.0430.03715.66
7.0.40.0480.02516.84
7.0.30.0500.02517.02
7.0.20.0520.02916.89
7.0.10.0500.03416.76
7.0.00.0400.05116.86
5.6.300.0110.01114.55
5.6.290.0150.00914.71
5.6.280.0080.04117.81
5.6.270.0160.00714.41
5.6.260.0110.01114.38
5.6.250.0150.00614.21
5.6.240.0090.01414.43
5.6.230.0110.01114.54
5.6.220.0080.01214.47
5.6.210.0130.04017.50
5.6.200.0060.02816.29
5.6.190.0040.05217.50
5.6.180.0230.04017.45
5.6.170.0200.03317.42
5.6.160.0090.02317.46
5.6.150.0030.02816.26
5.6.140.0120.03116.36
5.6.130.0160.02116.36
5.6.120.0150.04117.85
5.6.110.0160.04617.77
5.6.100.0140.03617.66
5.6.90.0090.04517.61
5.6.80.0090.02517.23
5.6.70.0100.01014.46
5.6.60.0170.00414.34
5.6.50.0120.00814.16
5.6.40.0070.01414.62
5.6.30.0110.01114.29
5.6.20.0130.00814.57
5.6.10.0120.01014.11
5.6.00.0170.00314.47
5.5.380.0100.00811.43
5.5.370.0110.00711.53
5.5.360.0100.00511.33
5.5.350.0220.03915.70
5.5.340.0100.03714.78
5.5.330.0120.04115.91
5.5.320.0220.04215.79
5.5.310.0220.03415.57
5.5.300.0070.03814.70
5.5.290.0050.04514.65
5.5.280.0080.04716.09
5.5.270.0080.02316.15
5.5.260.0080.04116.00
5.5.250.0100.04715.96
5.5.240.0170.04215.70
5.5.230.0160.00011.39
5.5.220.0130.00311.32
5.5.210.0080.00811.30
5.5.200.0140.00111.24
5.5.190.0130.00311.18
5.5.180.0100.00711.13
5.5.170.0230.00314.54
5.5.160.0090.00611.05
5.5.150.0150.00711.16
5.5.140.0040.01211.33
5.5.130.0070.00711.48
5.5.120.0140.00211.43
5.5.110.0100.00710.91
5.5.100.0070.00711.23
5.5.90.0100.00511.32
5.5.80.0050.00911.09
5.5.70.0000.01411.21
5.5.60.0110.00311.32
5.5.50.0090.00611.36
5.5.40.0070.00811.33
5.5.30.0100.00311.07
5.5.20.0130.00211.45
5.5.10.0110.00411.09
5.5.00.0100.00610.79

preferences:
42.22 ms | 401 KiB | 5 Q