3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = array("phone","name","street"); $db_user = new stdClass(); $db_user->take_phone = [1 => '123']; $db_user->take_name = [1 => 'Chris']; $db_user->take_street = [1 => 'Main']; foreach($a as $aa) { $var = "take_$aa"; echo $db_user->$var[1]; }

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.5.70.0120.00618.33
8.5.60.0110.00716.68
8.5.50.0110.00616.60
8.5.30.0070.00921.29
8.5.20.0110.00619.53
8.5.10.0040.00520.08
8.5.00.0080.01320.00
8.4.210.0040.00419.55
8.4.180.0110.01021.95
8.4.170.0120.00920.38
8.4.160.0160.00721.33
8.4.150.0050.00116.89
8.4.140.0130.00717.47
8.4.130.0100.01017.82
8.4.120.0040.00623.99
8.4.110.0040.00522.14
8.4.100.0050.00518.64
8.4.90.0110.00918.96
8.4.80.0150.00420.45
8.4.70.0130.00718.24
8.4.60.0110.00418.37
8.4.50.0090.01020.23
8.4.40.0190.00319.41
8.4.30.0160.00318.55
8.4.20.0030.01717.63
8.4.10.0120.00823.93
8.3.300.0120.00920.55
8.3.290.0110.01020.82
8.3.280.0140.00720.14
8.3.270.0100.01016.62
8.3.260.0120.00616.76
8.3.250.0040.00418.92
8.3.240.0080.00717.05
8.3.230.0120.00816.73
8.3.220.0110.00720.91
8.3.210.0140.00616.68
8.3.200.0070.00116.59
8.3.190.0090.01017.14
8.3.180.0120.00816.44
8.3.170.0070.01117.02
8.3.160.0130.01020.13
8.3.150.0000.00818.95
8.3.140.0120.00618.69
8.3.130.0090.00918.35
8.3.120.0050.00320.70
8.3.110.0090.00020.94
8.3.100.0160.00416.49
8.3.90.0000.00926.77
8.3.80.0060.00316.50
8.3.70.0120.00616.58
8.3.60.0070.01516.61
8.3.50.0150.00020.04
8.3.40.0040.01122.22
8.3.30.0150.00018.84
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0080.00026.16
8.2.300.0130.00722.35
8.2.290.0100.00720.38
8.2.280.0100.00818.48
8.2.270.0130.00618.89
8.2.260.0090.00616.44
8.2.250.0000.00818.31
8.2.240.0000.01117.17
8.2.230.0080.00022.58
8.2.220.0120.00624.06
8.2.210.0070.01026.77
8.2.200.0070.00416.38
8.2.190.0120.00616.63
8.2.180.0110.00425.92
8.2.170.0130.00718.88
8.2.160.0080.00622.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00820.81
8.2.110.0060.00319.09
8.2.100.0040.00717.78
8.2.90.0030.00517.75
8.2.80.0000.01218.76
8.2.70.0040.00417.50
8.2.60.0030.00617.50
8.2.50.0040.00418.05
8.2.40.0050.00318.28
8.2.30.0000.00718.13
8.2.20.0040.00419.31
8.2.10.0000.00718.03
8.2.00.0000.00719.29
8.1.340.0110.00817.55
8.1.330.0130.00522.00
8.1.320.0100.00816.10
8.1.310.0040.00418.36
8.1.300.0000.00919.39
8.1.290.0040.00730.84
8.1.280.0130.00325.92
8.1.270.0000.00824.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00723.94
8.1.230.0040.00821.03
8.1.220.0040.00418.63
8.1.210.0040.00418.77
8.1.200.0040.00417.11
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0070.00018.66
8.1.160.0000.00718.80
8.1.150.0040.00418.51
8.1.140.0000.00817.38
8.1.130.0000.00719.24
8.1.120.0030.00317.48
8.1.110.0040.00417.44
8.1.100.0040.01117.39
8.1.90.0150.00017.40
8.1.80.0040.01217.45
8.1.70.0120.00317.33
8.1.60.0120.00617.41
8.1.50.0130.00417.50
8.1.40.0170.00017.48
8.1.30.0090.00917.63
8.1.20.0150.00317.61
8.1.10.0090.00917.57
8.1.00.0070.01117.50
8.0.300.0080.00019.94
8.0.290.0000.00716.75
8.0.280.0070.00018.43
8.0.270.0030.00317.25
8.0.260.0000.00616.81
8.0.250.0000.00816.94
8.0.240.0120.00416.84
8.0.230.0130.00016.92
8.0.220.0120.00316.82
8.0.210.0040.00916.84
8.0.200.0060.00416.98
8.0.190.0070.00516.96
8.0.180.0110.00416.87
8.0.170.0070.00716.86
8.0.160.0120.00316.86
8.0.150.0100.00516.76
8.0.140.0140.00016.82
8.0.130.0100.00516.81
8.0.120.0150.00016.89
8.0.110.0110.00416.79
8.0.100.0050.01016.90
8.0.90.0110.00416.76
8.0.80.0150.00016.83
8.0.70.0040.01116.86
8.0.60.0140.00016.80
8.0.50.0070.00716.70
8.0.30.0120.00216.69
8.0.20.0060.00816.84
8.0.10.0070.00716.95
7.4.330.0020.00215.55
7.4.320.0070.00716.48
7.4.300.0090.00517.79
7.4.290.0090.00616.60
7.4.280.0120.00416.40
7.4.270.0080.00816.49
7.4.260.0110.00516.59
7.4.250.0080.00816.59
7.4.240.0150.00016.46
7.4.230.0000.01116.30
7.4.220.0050.00516.24
7.4.210.0030.00716.55
7.4.200.0120.00216.64
7.4.190.0140.00016.60
7.4.180.0060.00216.50
7.4.160.0040.00416.59
7.4.150.0040.00416.47
7.4.140.0040.00416.53
7.4.130.0040.00416.25
7.4.120.0060.00016.49
7.4.110.0000.00616.47
7.4.100.0000.00616.43
7.4.90.0040.00416.48
7.4.80.0030.00316.44
7.4.70.0000.00616.32
7.4.60.0000.00616.09
7.4.50.0000.00616.45
7.4.40.0030.00316.32
7.4.30.0030.00316.34
7.4.20.0030.00316.29
7.4.10.0030.00516.43
7.4.00.0040.00416.46

preferences:
72.55 ms | 1255 KiB | 5 Q