3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $fName = ''; function abc($test){ $this->fName = $test; } function returnVal($val) { return $this->{$val}; } } $obj = new test(); $obj->abc('data'); echo $obj->returnVal('fName');

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.4.130.0140.00717.77
8.4.120.0100.00920.35
8.4.110.0120.00918.98
8.4.100.0120.00817.89
8.4.90.0090.01118.86
8.4.80.0070.00320.71
8.4.70.0130.00717.70
8.4.60.0130.00818.69
8.4.50.0060.00517.54
8.4.40.0080.01117.66
8.4.30.0090.01217.54
8.4.20.0100.01019.41
8.4.10.0100.00617.47
8.3.260.0130.00616.63
8.3.250.0090.01018.86
8.3.240.0040.00516.57
8.3.230.0130.00716.61
8.3.220.0080.01117.22
8.3.210.0040.00416.67
8.3.200.0020.00616.61
8.3.190.0040.00417.20
8.3.180.0130.00616.74
8.3.170.0040.00418.82
8.3.160.0120.00618.22
8.3.150.0150.00317.22
8.3.140.0000.00816.43
8.3.130.0110.00016.75
8.3.120.0040.00419.18
8.3.110.0090.00920.94
8.3.100.0070.01324.06
8.3.90.0030.00526.77
8.3.80.0060.00318.68
8.3.70.0070.01418.55
8.3.60.0090.00618.20
8.3.50.0110.00717.46
8.3.40.0090.00918.66
8.3.30.0080.00818.89
8.3.20.0040.00419.15
8.3.10.0070.00020.96
8.3.00.0040.00417.80
8.2.290.0100.00820.36
8.2.280.0060.00218.57
8.2.270.0040.01117.34
8.2.260.0040.00418.82
8.2.250.0040.00418.50
8.2.240.0040.00418.88
8.2.230.0060.00322.58
8.2.220.0080.00337.54
8.2.210.0110.00726.77
8.2.200.0080.00016.50
8.2.190.0110.00416.63
8.2.180.0120.00618.11
8.2.170.0030.01022.96
8.2.160.0070.00720.95
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.89
8.2.120.0050.00326.35
8.2.110.0040.00722.07
8.2.100.0040.00817.78
8.2.90.0040.00417.65
8.2.80.0050.00319.07
8.2.70.0000.00817.93
8.2.60.0050.00217.93
8.2.50.0080.00018.10
8.2.40.0000.00719.34
8.2.30.0040.00419.43
8.2.20.0040.00418.04
8.2.10.0040.00418.05
8.2.00.0000.00719.37
8.1.330.0110.00820.30
8.1.320.0100.00816.24
8.1.310.0110.00416.87
8.1.300.0100.00017.95
8.1.290.0090.00030.84
8.1.280.0100.00725.92
8.1.270.0000.00821.78
8.1.260.0070.00026.35
8.1.250.0000.00928.09
8.1.240.0210.00023.97
8.1.230.0110.00020.93
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0000.00817.25
8.1.190.0080.00017.25
8.1.180.0000.00818.10
8.1.170.0000.00818.67
8.1.160.0040.00418.88
8.1.150.0050.00318.93
8.1.140.0030.00617.70
8.1.130.0030.00319.01
8.1.120.0000.00717.45
8.1.110.0030.00617.50
8.1.100.0040.00417.49
8.1.90.0040.00417.47
8.1.80.0040.00417.43
8.1.70.0050.00317.46
8.1.60.0030.00517.49
8.1.50.0040.00417.42
8.1.40.0000.00817.48
8.1.30.0100.00417.64
8.1.20.0040.00417.57
8.1.10.0000.00717.50
8.1.00.0000.00817.48
8.0.300.0020.00520.08
8.0.290.0000.00716.75
8.0.280.0000.00818.39
8.0.270.0030.00317.31
8.0.260.0040.00417.26
8.0.250.0030.00616.94
8.0.240.0030.00316.94
8.0.230.0030.00316.95
8.0.220.0050.00516.77
8.0.210.0030.00316.86
8.0.200.0000.00616.82
8.0.190.0000.00816.95
8.0.180.0050.00316.79
8.0.170.0030.00616.98
8.0.160.0030.00616.84
8.0.150.0040.00416.76
8.0.140.0030.00316.71
8.0.130.0030.00313.35
8.0.120.0000.00716.84
8.0.110.0030.00416.84
8.0.100.0060.00316.92
8.0.90.0030.00516.72
8.0.80.0070.01116.89
8.0.70.0000.00817.00
8.0.60.0050.00316.91
8.0.50.0000.00816.70
8.0.30.0090.01017.18
8.0.20.0160.00717.40
8.0.10.0030.00516.86
8.0.00.0110.00616.80
7.4.330.0000.00515.55
7.4.320.0000.00616.52
7.4.300.0060.00016.50
7.4.290.0030.00316.42
7.4.280.0030.00516.60
7.4.270.0080.00016.50
7.4.260.0070.00016.48
7.4.250.0070.00016.42
7.4.240.0030.00316.39
7.4.230.0070.00016.53
7.4.220.0040.00416.41
7.4.210.0080.00716.59
7.4.200.0000.00716.48
7.4.160.0080.01116.43
7.4.140.0110.00817.86
7.4.130.0090.00816.46
7.4.120.0100.00816.54
7.4.110.0060.01216.38
7.4.100.0070.01016.60
7.4.90.0160.00416.58
7.4.80.0090.00919.39
7.4.70.0060.01216.69
7.4.60.0130.00616.45
7.4.50.0070.00716.45
7.4.40.0180.00016.41
7.4.00.0100.01015.12
7.3.330.0030.00313.37
7.3.320.0030.00213.37
7.3.310.0040.00416.32
7.3.300.0000.00716.17
7.3.290.0070.00016.30
7.3.280.0070.01116.28
7.3.260.0120.01116.42
7.3.240.0120.00616.40
7.3.230.0100.00616.39
7.3.210.0100.01316.32
7.3.200.0130.00916.40
7.3.190.0100.01016.48
7.3.180.0100.00716.49
7.3.170.0060.01016.46
7.3.160.0060.01116.45
7.3.120.0140.00014.78
7.3.110.0060.01214.78
7.3.100.0070.01114.82
7.3.90.0110.00714.88
7.3.80.0030.01014.75
7.3.70.0100.00714.84
7.3.60.0040.01114.70
7.3.50.0060.00614.43
7.3.40.0050.00514.59
7.3.30.0030.00914.90
7.3.20.0040.00816.71
7.3.10.0090.00616.70
7.3.00.0070.00716.57
7.2.330.0130.01016.74
7.2.320.0140.00716.71
7.2.310.0000.01716.44
7.2.300.0000.02016.70
7.2.290.0060.01216.48
7.2.250.0030.01715.01
7.2.240.0000.01814.89
7.2.230.0140.00315.02
7.2.220.0080.00315.19
7.2.210.0040.01215.23
7.2.200.0000.01314.89
7.2.190.0000.00914.96
7.2.180.0100.00315.20
7.2.170.0040.01415.08
7.2.160.0090.00615.07
7.2.150.0060.00916.94
7.2.140.0030.00616.84
7.2.130.0070.00716.96
7.2.120.0070.00716.86
7.2.110.0000.01016.59
7.2.100.0000.01216.83
7.2.90.0000.01016.88
7.2.80.0050.00517.02
7.2.70.0100.00716.83
7.2.60.0700.01416.00
7.2.50.0790.00715.99
7.2.40.0590.01116.01
7.2.30.1110.00816.29
7.2.20.1310.00916.16
7.2.10.1060.01116.19
7.2.00.1080.01416.12
7.1.330.0090.00615.64
7.1.320.0040.00416.03
7.1.310.0000.01515.86
7.1.300.0090.00015.54
7.1.290.0070.00315.52
7.1.280.0040.00815.67
7.1.270.0060.00915.61
7.1.260.0000.01515.48
7.1.250.0030.00615.61
7.1.200.0030.01015.67
7.1.170.1430.01013.81
7.1.160.2020.01016.82
7.1.150.2050.01116.75
7.1.140.2230.01116.82
7.1.130.2090.01116.83
7.1.120.2240.01316.83
7.1.110.2710.01216.00
7.1.100.2280.01115.95
7.1.90.2780.00916.20
7.1.80.2900.00916.19
7.1.70.2620.00915.32
7.1.60.2670.01433.09
7.1.50.2610.01332.71
7.1.40.2390.00932.39
7.1.30.2780.01632.78
7.1.20.2690.01032.62
7.1.10.2420.01514.55
7.1.00.2120.01014.96

preferences:
31.05 ms | 403 KiB | 5 Q