3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $a = array(); class testClass { public $flagName; public $message; } $a1 = new testClass(); $a1->flagname = "LTV Under 50"; $a1->message = "green"; $a[] = $a1; $a2 = new testClass(); $a2->flagname = "Blue"; $a2->message = "Yellow"; $a[] = $a2; $a = array_merge($a,(array)$a2); print_r($a); ?> </body> </html>

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.0090.00616.63
8.3.50.0140.00522.10
8.3.40.0070.00718.82
8.3.30.0070.00719.09
8.3.20.0030.00520.14
8.3.10.0080.00023.53
8.3.00.0070.00020.77
8.2.180.0110.00718.16
8.2.170.0040.01122.96
8.2.160.0030.01020.52
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00320.79
8.2.110.0000.01021.05
8.2.100.0040.00818.03
8.2.90.0090.00019.30
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0070.00017.93
8.2.50.0050.00318.10
8.2.40.0000.00819.88
8.2.30.0020.00518.13
8.2.20.0080.00017.69
8.2.10.0040.00418.12
8.2.00.0080.00017.74
8.1.280.0040.01125.92
8.1.270.0050.00323.96
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0140.00723.79
8.1.230.0120.00017.60
8.1.220.0000.00817.78
8.1.210.0050.00318.77
8.1.200.0030.00617.25
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0030.00618.57
8.1.160.0040.00421.93
8.1.150.0050.00218.59
8.1.140.0040.00417.27
8.1.130.0070.00017.81
8.1.120.0000.00717.26
8.1.110.0070.00017.33
8.1.100.0000.00817.38
8.1.90.0000.00717.40
8.1.80.0070.00017.36
8.1.70.0040.00417.42
8.1.60.0080.00017.60
8.1.50.0040.00417.47
8.1.40.0080.00017.44
8.1.30.0040.00417.60
8.1.20.0040.00417.64
8.1.10.0040.00417.61
8.1.00.0000.00717.56
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0040.00418.52
8.0.270.0040.00416.82
8.0.260.0030.00317.26
8.0.250.0000.00716.82
8.0.240.0060.00316.93
8.0.230.0070.00016.89
8.0.220.0030.00316.82
8.0.210.0000.00716.81
8.0.200.0000.00616.74
8.0.190.0000.00816.90
8.0.180.0040.00416.75
8.0.170.0080.00016.75
8.0.160.0030.00316.90
8.0.150.0040.00416.67
8.0.140.0070.00016.63
8.0.130.0030.00313.14
8.0.120.0040.00416.69
8.0.110.0030.00516.88
8.0.100.0040.00416.73
8.0.90.0070.00016.75
8.0.80.0110.01116.83
8.0.70.0080.00016.70
8.0.60.0040.00416.80
8.0.50.0000.00716.73
8.0.30.0100.00817.05
8.0.20.0090.01417.40
8.0.10.0000.00716.97
8.0.00.0060.01116.62
7.4.330.0000.00515.05
7.4.320.0030.00316.59
7.4.300.0000.00716.60
7.4.290.0070.00016.53
7.4.280.0000.00716.60
7.4.270.0080.00016.61
7.4.260.0000.00716.60
7.4.250.0030.00616.57
7.4.240.0030.00416.58
7.4.230.0030.00316.54
7.4.220.0120.00616.56
7.4.210.0070.00816.50
7.4.200.0040.00416.49
7.4.190.0000.00816.33
7.4.160.0040.01216.65
7.4.150.0030.01317.40
7.4.140.0110.01017.86
7.4.130.0090.00816.42
7.4.120.0110.00916.52
7.4.110.0110.00716.57
7.4.100.0220.00316.56
7.4.90.0030.01316.58
7.4.80.0130.00619.39
7.4.70.0030.01316.19
7.4.60.0090.00916.43
7.4.50.0030.00616.39
7.4.40.0070.01016.54
7.4.30.0030.01316.50
7.4.00.0060.01014.83
7.3.330.0030.00313.14
7.3.320.0050.00013.26
7.3.310.0000.00716.13
7.3.300.0000.00716.23
7.3.290.0070.00716.31
7.3.280.0090.00916.30
7.3.270.0110.00717.40
7.3.260.0080.00816.51
7.3.250.0090.00816.35
7.3.240.0100.00716.56
7.3.230.0070.01016.48
7.3.210.0060.01016.54
7.3.200.0090.01219.39
7.3.190.0130.00716.54
7.3.180.0120.00316.35
7.3.170.0100.00716.38
7.3.160.0080.00816.51
7.3.120.0030.01014.59
7.3.10.0100.00716.36
7.3.00.0040.01215.94
7.2.330.0070.01116.80
7.2.320.0160.00816.68
7.2.310.0100.01016.80
7.2.300.0070.01016.80
7.2.290.0070.01016.45
7.2.130.0110.00016.55
7.2.120.0120.00316.39
7.2.110.0060.00916.21
7.2.100.0080.00416.38
7.2.90.0080.00516.29
7.2.80.0100.00016.63
7.2.70.0060.00616.62
7.2.60.0080.00616.65
7.2.50.0100.00216.68
7.2.40.0060.00616.54
7.2.30.0060.00916.22
7.2.20.0150.00316.78
7.2.10.0060.00816.54
7.2.00.0030.01318.07
7.1.250.0080.00815.35
7.1.200.0000.00815.82
7.1.100.0030.00918.04
7.1.70.0000.01017.22
7.1.60.0070.01319.46
7.1.50.0040.01816.80
7.1.00.0030.07722.30
7.0.200.0000.01016.96
7.0.140.0030.04722.10
7.0.60.0170.05720.04
7.0.50.0030.07317.86
7.0.40.0000.08020.04
7.0.30.0200.06720.30
7.0.20.0270.03720.23
7.0.10.0070.05320.12
7.0.00.0100.08320.20
5.6.280.0030.07020.78
5.6.210.0130.07320.75
5.6.200.0070.08318.23
5.6.190.0030.04720.34
5.6.180.0100.04720.57
5.6.170.0530.03020.55
5.6.160.0070.06720.61
5.6.150.0070.04018.15
5.6.140.0000.05718.27
5.6.130.0100.05318.18
5.6.120.0030.04721.12
5.6.110.0000.08320.88
5.6.100.0070.08721.11
5.6.90.0100.07721.00
5.6.80.0070.03320.40
5.5.350.0170.03320.43
5.5.340.0030.04717.95
5.5.330.0170.06020.37
5.5.320.0330.08020.28
5.5.310.0270.06320.29
5.5.300.0030.04017.98
5.5.290.0100.08018.08
5.5.280.0100.03720.80
5.5.270.0030.09320.80
5.5.260.0070.08320.97
5.5.250.0070.04020.70
5.5.240.0100.07320.26
5.4.450.0000.06319.50
5.4.440.0070.06719.45
5.4.430.0130.03019.49
5.4.420.1100.04019.38
5.4.410.1870.04719.08
5.4.400.1770.04319.12
5.4.390.1770.03318.86
5.4.380.1600.04318.86
5.4.370.1900.04019.17
5.4.360.0100.08019.21
5.4.350.0000.04718.89
5.4.340.1100.04718.75
5.4.320.1330.04019.10
5.4.310.0870.03019.21
5.4.300.0030.03719.01
5.4.290.0070.03319.21
5.4.280.1430.03719.07
5.4.270.0130.04719.05
5.4.260.0030.06018.99
5.4.250.0530.03719.07
5.4.240.1570.03719.16
5.4.230.1430.04319.16
5.4.220.1500.03319.07
5.4.210.1570.03318.74
5.4.200.1630.03718.78
5.4.190.0170.08319.20
5.4.180.0170.04018.88
5.4.170.0230.06319.05
5.4.160.0170.06018.84
5.4.150.0100.03319.19
5.4.140.0200.06716.51
5.4.130.0030.04016.30
5.4.120.0130.03716.46
5.4.110.0100.04016.55
5.4.100.0200.03016.26
5.4.90.0200.05716.36
5.4.80.0130.04016.54
5.4.70.0170.05316.54
5.4.60.0200.05716.43
5.4.50.0170.05716.48
5.4.40.0170.03716.33
5.4.30.0070.03316.51
5.4.20.0030.04016.48
5.4.10.0030.07016.35
5.4.00.0100.04315.77
5.3.290.0070.05014.80
5.3.280.0070.04014.51
5.3.270.1470.03714.50
5.3.260.1500.04014.52
5.3.250.0100.04314.61
5.3.240.0070.03314.61
5.3.230.0170.04314.49
5.3.220.1570.04014.54
5.3.210.1770.04314.54
5.3.200.0100.04314.46
5.3.190.0000.04714.61
5.3.180.0670.04014.46
5.3.170.0100.04014.61
5.3.160.0000.04014.67
5.3.150.0070.06714.46
5.3.140.1170.04314.78
5.3.130.0000.05014.64
5.3.120.0030.04314.51
5.3.110.0170.05014.55
5.3.100.1530.04013.93
5.3.90.1530.03714.03
5.3.80.1500.03713.99
5.3.70.1500.04314.06
5.3.60.0070.07314.08
5.3.50.0030.03713.99
5.3.40.0030.04713.86
5.3.30.1370.04013.81
5.3.20.0000.05013.83
5.3.10.0030.03713.65
5.3.00.0000.03713.71
5.2.170.1200.04011.26
5.2.160.0030.06311.29
5.2.150.0100.03011.05
5.2.140.0000.03311.15
5.2.130.1130.04311.06
5.2.120.0030.04011.00
5.2.110.0000.03011.01
5.2.100.0030.05311.25
5.2.90.0000.03711.03
5.2.80.0070.05311.00
5.2.70.0070.02311.06
5.2.60.0500.04010.96
5.2.50.1370.03710.91
5.2.40.1100.03011.06
5.2.30.0000.03011.08
5.2.20.0070.06310.96
5.2.10.0030.05710.90
5.2.00.0200.05310.63
5.1.60.0030.02710.09
5.1.50.0070.0279.89
5.1.40.0000.0309.90
5.1.30.0000.05310.47
5.1.20.0030.03710.40
5.1.10.0000.03010.19
5.1.00.0030.03010.19
5.0.50.0070.0438.45
5.0.40.0000.0308.33
5.0.30.0130.0308.35
5.0.20.0570.0278.32
5.0.10.0070.0408.23
5.0.00.0130.0438.08
4.4.90.0030.0277.99
4.4.80.0000.0207.99
4.4.70.0000.0307.99
4.4.60.0000.0207.99
4.4.50.0000.0207.99
4.4.40.0000.0307.99
4.4.30.0000.0177.99
4.4.20.0370.0177.99
4.4.10.0470.0177.99
4.4.00.0330.0277.99
4.3.110.0500.0177.99
4.3.100.0030.0207.99
4.3.90.0030.0107.99
4.3.80.0000.0237.99
4.3.70.0000.0177.99
4.3.60.0000.0137.99
4.3.50.0030.0377.99
4.3.40.0030.0537.99
4.3.30.0000.0237.99
4.3.20.0000.0207.99
4.3.10.0000.0177.99
4.3.00.0070.0307.99

preferences:
48.56 ms | 401 KiB | 5 Q