3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($tring, $string2){ return $tring . $string2; } $obj = new stdClass(); $obj->bean = array(); $das = array('function' => 'teste'); $obj->bean = $das; var_dump($obj); echo $obj->bean->das['function']("Lucas","Oliveira");

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.0110.00416.75
8.3.50.0290.00522.17
8.3.40.0210.00018.79
8.3.30.0090.00618.63
8.3.20.0050.00220.38
8.3.10.0060.00323.71
8.3.00.0040.00419.38
8.2.180.0090.00916.50
8.2.170.0100.01022.96
8.2.160.0070.00720.53
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00021.04
8.2.110.0030.00620.52
8.2.100.0110.00018.04
8.2.90.0040.00419.19
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0000.00817.91
8.2.50.0060.00318.07
8.2.40.0000.00819.42
8.2.30.0030.00320.63
8.2.20.0030.00617.67
8.2.10.0000.00718.21
8.2.00.0000.00717.99
8.1.280.0110.00325.92
8.1.270.0060.00323.73
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0160.00622.19
8.1.230.0090.00319.43
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0000.00817.34
8.1.180.0000.00718.10
8.1.170.0030.00618.75
8.1.160.0000.00821.88
8.1.150.0040.00418.83
8.1.140.0000.00819.55
8.1.130.0030.00317.64
8.1.120.0040.00417.45
8.1.110.0000.00817.38
8.1.100.0000.00717.38
8.1.90.0040.00417.34
8.1.80.0070.00017.35
8.1.70.0000.00717.26
8.1.60.0030.00617.48
8.1.50.0000.00817.42
8.1.40.0050.00317.46
8.1.30.0080.00017.58
8.1.20.0000.00717.60
8.1.10.0030.00717.59
8.1.00.0030.00617.52
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0030.00318.36
8.0.270.0070.00017.21
8.0.260.0030.00317.20
8.0.250.0000.00716.93
8.0.240.0030.00317.02
8.0.230.0000.00716.88
8.0.220.0090.00016.77
8.0.210.0000.00716.88
8.0.200.0030.00316.90
8.0.190.0030.00516.98
8.0.180.0000.00816.87
8.0.170.0030.00316.92
8.0.160.0070.00016.91
8.0.150.0000.00816.84
8.0.140.0030.00616.81
8.0.130.0030.00313.27
8.0.120.0030.00516.87
8.0.110.0000.00816.91
8.0.100.0030.00516.88
8.0.90.0040.00416.78
8.0.80.0130.00316.91
8.0.70.0040.00416.76
8.0.60.0040.00417.00
8.0.50.0030.00316.73
8.0.30.0070.01117.15
8.0.20.0080.01117.40
8.0.10.0040.00417.05
8.0.00.0080.01016.82
7.4.330.0000.00616.79
7.4.320.0030.00316.62
7.4.300.0030.00316.60
7.4.290.0000.00816.45
7.4.280.0000.00716.41
7.4.270.0040.00416.55
7.4.260.0030.00316.48
7.4.250.0040.00416.57
7.4.240.0020.00516.54
7.4.230.0030.00316.43
7.4.220.0100.01616.70
7.4.210.0000.01316.63
7.4.200.0070.00016.64
7.4.160.0120.00416.52
7.4.150.0070.01317.40
7.4.140.0080.01217.86
7.4.130.0090.01016.57
7.4.120.0120.00616.52
7.4.110.0060.01216.47
7.4.100.0090.01216.59
7.4.90.0160.00716.54
7.4.80.0100.00719.39
7.4.70.0120.00916.50
7.4.60.0070.01016.61
7.4.50.0090.00316.43
7.4.40.0060.01116.47
7.4.30.0100.00716.52
7.4.00.0050.01115.00
7.3.330.0000.00513.45
7.3.320.0000.00513.42
7.3.310.0020.00516.51
7.3.300.0040.00416.51
7.3.290.0070.00816.39
7.3.280.0080.01216.37
7.3.270.0140.00317.40
7.3.260.0170.00016.47
7.3.250.0150.00216.42
7.3.240.0050.01116.47
7.3.230.0080.00816.58
7.3.210.0110.00616.50
7.3.200.0100.01016.57
7.3.190.0140.01416.43
7.3.180.0140.00316.49
7.3.170.0120.00616.37
7.3.160.0120.00416.31
7.3.120.0100.00514.82
7.3.110.0140.00214.66
7.3.100.0050.01014.95
7.3.90.0090.00314.88
7.3.80.0050.00714.84
7.3.70.0030.00714.79
7.3.60.0080.00514.95
7.3.50.0040.00914.83
7.3.40.0090.00314.64
7.3.30.0020.01114.70
7.3.20.0100.00516.53
7.3.10.0050.01016.38
7.3.00.0080.00516.69
7.2.330.0100.00716.45
7.2.320.0110.00716.67
7.2.310.0030.01416.59
7.2.300.0100.00716.74
7.2.290.0030.01416.77
7.2.250.0040.01115.25
7.2.240.0060.01114.95
7.2.230.0070.00815.09
7.2.220.0090.00914.89
7.2.210.0130.00315.21
7.2.200.0040.00914.92
7.2.190.0100.00615.10
7.2.180.0050.01015.01
7.2.170.0020.01315.04
7.2.160.0090.00614.94
7.2.150.0120.00316.86
7.2.140.0030.00916.84
7.2.130.0030.00716.85
7.2.120.0030.01416.93
7.2.110.0090.00316.90
7.2.100.0140.00316.70
7.2.90.0110.00717.04
7.2.80.0080.00816.89
7.2.70.0060.00616.54
7.2.60.0050.00916.90
7.2.50.0000.01816.78
7.2.40.0060.01016.73
7.2.30.0000.01316.94
7.2.20.0000.01516.85
7.2.10.0070.01016.95
7.2.00.0090.00316.86
7.1.330.0070.01015.90
7.1.320.0070.00915.88
7.1.310.0050.01015.76
7.1.300.0070.00815.65
7.1.290.0070.00515.63
7.1.280.0060.00915.72
7.1.270.0050.00915.79
7.1.260.0110.00515.63
7.1.250.0100.00315.90
7.1.200.0030.01015.94
7.1.70.0040.00417.18
7.1.60.0070.02019.36
7.1.50.0040.00716.97
7.1.00.0070.07322.45
7.0.200.0000.00716.61
7.0.60.0100.08720.01
7.0.50.0100.08017.89
7.0.40.0000.04720.09
7.0.30.0130.04320.16
7.0.20.0300.07320.30
7.0.10.0070.09320.24
7.0.00.0100.08320.06
5.6.210.0100.07020.63
5.6.200.0030.07718.29
5.6.190.0070.04320.50
5.6.180.0270.04320.61
5.6.170.0200.03720.51
5.6.160.0130.07320.54
5.6.150.0000.05718.15
5.6.140.0030.05318.27
5.6.130.0070.05718.21
5.6.120.0030.08321.12
5.6.110.0070.08021.01
5.6.100.0170.07021.14
5.6.90.0270.06320.96
5.6.80.0100.07720.43
5.5.350.0230.07720.44
5.5.340.0000.04318.02
5.5.330.0100.07320.41
5.5.320.0030.08320.52
5.5.310.0330.04020.30
5.5.300.0100.03717.97
5.5.290.0000.04317.93
5.5.280.0130.07720.96
5.5.270.0070.07720.89
5.5.260.0170.08020.97
5.5.250.0100.08320.80
5.5.240.4230.04020.19

preferences:
29.99 ms | 401 KiB | 5 Q