3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new stdClass; $o->text = "ans1"; $o2 = new stdClass; $o2->text = "ans2"; $o3 = new stdClass; $o3->text = "ans3"; // answer really starts here: $arr = [$o, $o2, $o3]; print_r(array_column($arr, 'text'));

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.0140.00718.19
8.3.50.0140.00316.50
8.3.40.0030.01018.67
8.3.30.0150.00018.54
8.3.20.0070.00020.04
8.3.10.0080.00023.61
8.3.00.0040.00419.56
8.2.180.0070.01118.42
8.2.170.0100.00322.96
8.2.160.0100.00319.09
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00319.29
8.2.120.0040.00426.35
8.2.110.0040.00722.07
8.2.100.0060.00619.64
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0000.00818.04
8.2.50.0060.00318.10
8.2.40.0050.00320.52
8.2.30.0080.00020.91
8.2.20.0040.00418.05
8.2.10.0040.00418.04
8.2.00.0070.00017.95
8.1.280.0040.01125.92
8.1.270.0040.00422.24
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.01020.95
8.1.230.0080.00319.16
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0040.00417.35
8.1.180.0070.00018.10
8.1.170.0060.00318.67
8.1.160.0040.00418.89
8.1.150.0040.00418.75
8.1.140.0040.00419.46
8.1.130.0050.00318.82
8.1.120.0080.00017.46
8.1.110.0030.00617.31
8.1.100.0070.00417.35
8.1.90.0070.00017.44
8.1.80.0000.00817.40
8.1.70.0000.00717.43
8.1.60.0070.00017.49
8.1.50.0060.00317.52
8.1.40.0070.00317.47
8.1.30.0050.00317.63
8.1.20.0050.00217.64
8.1.10.0000.00817.48
8.1.00.0080.00017.48
8.0.300.0030.00320.09
8.0.290.0080.00016.58
8.0.280.0030.00318.44
8.0.270.0030.00317.13
8.0.260.0030.00316.75
8.0.250.0030.00316.96
8.0.240.0040.00416.89
8.0.230.0000.00716.84
8.0.220.0030.00316.86
8.0.210.0060.00316.90
8.0.200.0000.00716.91
8.0.190.0030.00616.88
8.0.180.0040.00416.87
8.0.170.0000.00816.91
8.0.160.0080.00016.84
8.0.150.0030.00416.87
8.0.140.0040.00416.72
8.0.130.0090.00013.21
8.0.120.0050.00216.74
8.0.110.0080.00016.88
8.0.100.0040.00416.92
8.0.90.0070.00016.68
8.0.80.0060.00916.84
8.0.70.0030.00516.80
8.0.60.0070.00016.84
8.0.50.0000.00716.99
8.0.30.0120.00916.99
8.0.20.0110.00817.40
8.0.10.0000.00716.96
8.0.00.0130.01016.91
7.4.330.0020.00215.55
7.4.320.0000.00616.66
7.4.300.0060.00016.48
7.4.290.0030.00616.59
7.4.280.0070.00016.50
7.4.270.0000.00716.48
7.4.260.0070.00016.48
7.4.250.0070.00016.56
7.4.240.0030.00516.64
7.4.230.0070.00016.37
7.4.220.0100.01016.54
7.4.210.0060.00916.43
7.4.200.0030.00316.39
7.4.150.0100.01017.40
7.4.140.0140.00917.86
7.4.130.0120.00916.53
7.4.120.0100.01116.59
7.4.110.0130.00316.56
7.4.100.0070.01416.47
7.4.90.0050.01416.42
7.4.80.0160.00719.39
7.4.70.0100.00716.61
7.4.60.0090.01216.34
7.4.50.0070.00416.48
7.4.40.0030.01316.33
7.4.30.0040.01216.54
7.4.00.0100.00515.03
7.3.330.0050.00013.11
7.3.320.0000.00613.10
7.3.310.0030.00316.21
7.3.300.0070.00016.29
7.3.290.0040.01016.26
7.3.280.0070.01016.26
7.3.270.0180.00017.40
7.3.260.0130.00716.34
7.3.250.0080.01016.37
7.3.240.0130.00516.41
7.3.230.0080.01416.43
7.3.210.0030.01316.54
7.3.200.0090.00616.50
7.3.190.0040.01116.37
7.3.180.0080.00816.43
7.3.170.0060.00916.35
7.3.160.0120.00916.32
7.3.120.0130.00714.77
7.3.110.0120.00614.84
7.3.100.0030.00614.66
7.3.90.0060.00815.01
7.3.80.0040.01114.84
7.3.70.0060.00814.64
7.3.60.0030.01014.80
7.3.50.0100.00714.72
7.3.40.0030.00914.86
7.3.30.0060.00614.55
7.3.20.0060.00316.75
7.3.10.0070.00716.58
7.3.00.0050.00716.46
7.2.330.0070.01116.71
7.2.320.0110.00516.66
7.2.310.0090.01216.36
7.2.300.0090.01216.75
7.2.290.0090.01416.28
7.2.250.0060.00614.75
7.2.240.0170.00315.29
7.2.230.0070.00715.17
7.2.220.0050.00514.97
7.2.210.0060.00615.33
7.2.200.0000.01215.11
7.2.190.0030.01014.98
7.2.180.0070.00715.04
7.2.170.0120.00014.95
7.2.130.0120.00016.83
7.2.120.0090.00616.88
7.2.110.0030.00616.68
7.2.100.0110.00316.81
7.2.90.0120.00016.71
7.2.80.0080.00316.82
7.2.70.0060.00316.83
7.2.60.0060.00716.84
7.2.50.0030.01016.96
7.2.40.0040.00716.92
7.2.30.0030.01016.75
7.2.20.0030.01016.70
7.2.10.0100.00017.08
7.2.00.0090.00617.74
7.1.330.0030.01015.89
7.1.320.0000.01315.70
7.1.310.0000.01215.73
7.1.300.0000.01315.69
7.1.290.0000.01515.78
7.1.280.0040.00415.79
7.1.270.0070.00716.01
7.1.260.0030.00615.89
7.1.250.0100.00315.63
7.1.200.0060.00615.78
7.1.100.0030.00617.74
7.1.70.0130.00817.09
7.1.60.0380.01034.98
7.1.50.0300.01734.86
7.1.40.0250.02234.50
7.1.30.0250.02234.33
7.1.20.0220.02234.54
7.1.10.0000.02116.45
7.1.00.0090.01216.43
7.0.200.0130.01116.47
7.0.190.0170.00716.82
7.0.180.0080.01416.45
7.0.170.0100.01016.31
7.0.160.0060.01316.30
7.0.150.0100.01016.27
7.0.140.0030.01516.30
7.0.130.0060.01616.39
7.0.120.0070.01516.51
7.0.110.0090.00916.41
7.0.100.0090.01216.32
7.0.90.0060.01516.13
7.0.80.0140.00616.27
7.0.70.0710.01014.37
7.0.60.0730.01414.32
7.0.50.0110.00716.31
7.0.40.0020.01716.41
7.0.30.0050.01716.48
7.0.20.0750.01416.48
7.0.10.0460.00614.64
7.0.00.0080.01616.32

preferences:
47.4 ms | 401 KiB | 5 Q