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,$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.0140.00018.43
8.3.50.0140.00221.97
8.3.40.0120.00318.97
8.3.30.0110.00319.05
8.3.20.0070.00020.16
8.3.10.0000.00823.70
8.3.00.0040.00421.02
8.2.180.0120.00316.73
8.2.170.0110.00422.96
8.2.160.0030.01020.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00320.89
8.2.110.0030.01319.39
8.2.100.0040.00819.68
8.2.90.0030.00619.17
8.2.80.0000.00817.97
8.2.70.0050.00317.75
8.2.60.0040.00417.93
8.2.50.0000.00918.10
8.2.40.0060.00319.82
8.2.30.0020.00518.20
8.2.20.0040.00417.70
8.2.10.0000.00718.03
8.2.00.0000.00817.61
8.1.280.0060.01225.92
8.1.270.0090.00023.88
8.1.260.0000.00926.35
8.1.250.0070.00028.09
8.1.240.0030.00624.02
8.1.230.0070.00417.76
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0070.00417.23
8.1.180.0050.00318.10
8.1.170.0050.00318.46
8.1.160.0040.00421.96
8.1.150.0040.00418.49
8.1.140.0030.00517.38
8.1.130.0040.00417.89
8.1.120.0070.00017.29
8.1.110.0000.00717.38
8.1.100.0050.00317.40
8.1.90.0000.00717.41
8.1.80.0080.00017.25
8.1.70.0030.00517.36
8.1.60.0060.00317.40
8.1.50.0080.00017.54
8.1.40.0040.00417.52
8.1.30.0000.00817.69
8.1.20.0030.00617.61
8.1.10.0040.00417.62
8.1.00.0050.00317.55
8.0.300.0050.00218.77
8.0.290.0000.01016.63
8.0.280.0030.00418.46
8.0.270.0040.00417.33
8.0.260.0000.00617.20
8.0.250.0030.00317.04
8.0.240.0040.00416.84
8.0.230.0070.00016.81
8.0.220.0000.00716.80
8.0.210.0000.00716.91
8.0.200.0030.00316.80
8.0.190.0030.00316.87
8.0.180.0070.00016.91
8.0.170.0090.00016.90
8.0.160.0070.00016.85
8.0.150.0110.00016.81
8.0.140.0040.00416.82
8.0.130.0000.00613.29
8.0.120.0000.00816.79
8.0.110.0030.00616.80
8.0.100.0080.00016.91
8.0.90.0050.00316.76
8.0.80.0100.00616.93
8.0.70.0030.00516.79
8.0.60.0000.00716.76
8.0.50.0040.00416.89
8.0.30.0110.00817.19
8.0.20.0100.00717.40
8.0.10.0000.00716.97
8.0.00.0050.01216.76
7.4.330.0000.00515.03
7.4.320.0030.00316.47
7.4.300.0000.00716.53
7.4.290.0080.00016.43
7.4.280.0000.00816.42
7.4.270.0000.00716.55
7.4.260.0000.00716.56
7.4.250.0030.00516.43
7.4.240.0020.00516.46
7.4.230.0030.00316.28
7.4.220.0040.01516.46
7.4.210.0040.01316.43
7.4.200.0000.00816.52
7.4.190.0000.00816.50
7.4.160.0090.00616.47
7.4.150.0150.00317.40
7.4.140.0050.01217.86
7.4.130.0110.00916.43
7.4.120.0110.00616.46
7.4.110.0130.00916.42
7.4.100.0090.00916.41
7.4.90.0030.01316.36
7.4.80.0100.01719.39
7.4.70.0160.00316.50
7.4.60.0100.01316.45
7.4.50.0080.00016.57
7.4.40.0110.01116.65
7.4.30.0060.00916.64
7.4.00.0120.00414.82
7.3.330.0030.00313.22
7.3.320.0050.00013.34
7.3.310.0040.00416.34
7.3.300.0050.00316.31
7.3.290.0060.01316.36
7.3.280.0080.01016.37
7.3.270.0030.01417.40
7.3.260.0110.00616.46
7.3.250.0090.01016.39
7.3.240.0130.00616.48
7.3.230.0130.00316.46
7.3.210.0140.00416.48
7.3.200.0030.01919.39
7.3.190.0130.00416.44
7.3.180.0110.00516.25
7.3.170.0120.00616.50
7.3.160.0160.00016.39
7.3.120.0060.01114.88
7.2.330.0100.00616.69
7.2.320.0100.01216.84
7.2.310.0090.01116.82
7.2.300.0140.00316.72
7.2.290.0080.00816.40
7.2.110.0140.00316.47
7.2.100.0040.01316.66
7.2.90.0110.00716.75
7.2.80.2570.00316.58
7.2.70.0130.00716.92
7.2.60.0110.00816.94
7.2.50.0490.00716.86
7.2.40.0080.01216.80
7.2.30.0120.00417.02
7.2.20.0130.00517.08
7.2.10.0220.01116.89
7.2.00.0090.00518.25
7.1.230.0410.00315.81
7.1.220.0090.00515.75
7.1.210.0120.00615.43
7.1.200.0030.00915.63
7.1.190.0070.01115.83
7.1.180.0140.00515.86
7.1.170.0090.00416.00
7.1.160.0130.00315.77
7.1.150.0130.00315.80
7.1.140.0150.00015.56
7.1.130.0150.00315.86
7.1.120.0150.00315.81
7.1.110.0460.00015.89
7.1.100.0060.00717.03
7.1.90.0060.00915.63
7.1.80.0060.00915.50
7.1.70.0070.00716.61
7.1.60.0130.00917.60
7.1.50.0150.00916.35
7.1.40.0160.00015.76
7.1.30.0090.00915.79
7.1.20.0120.00615.89
7.1.10.0090.00615.85
7.1.00.0090.03919.15
7.0.310.0100.00715.06
7.0.300.0070.00715.25
7.0.290.0200.00415.46
7.0.280.0110.00515.24
7.0.270.0080.00415.38
7.0.260.0420.00615.36
7.0.250.0130.00515.64
7.0.240.0100.00615.23
7.0.230.0110.00415.48
7.0.220.0110.00715.44
7.0.210.0100.00615.41
7.0.200.0050.00516.00
7.0.190.0330.00015.59
7.0.180.0120.00415.09
7.0.170.0090.00415.37
7.0.160.0150.00015.53
7.0.150.0050.01015.14
7.0.140.0040.02618.77
7.0.130.0120.00215.54
7.0.120.0110.00615.48
7.0.110.0080.01215.37
7.0.100.0130.00215.43
7.0.90.0120.00615.43
7.0.80.0130.00415.46
7.0.70.0730.00615.38
7.0.60.0020.04717.70
7.0.50.0110.02416.59
7.0.40.0130.03816.71
7.0.30.0200.02916.83
7.0.20.0230.03716.78
7.0.10.0070.02716.94
7.0.00.0080.04116.86
5.6.380.0130.00314.41
5.6.370.0040.01214.52
5.6.360.0150.00013.95
5.6.350.0000.01514.62
5.6.340.0090.00614.20
5.6.330.0100.00214.67
5.6.320.0050.01114.57
5.6.310.0060.00614.69
5.6.300.0100.00613.97
5.6.290.0130.00314.34
5.6.280.0050.03717.54
5.6.270.0100.00714.72
5.6.260.0090.00614.59
5.6.250.0110.00714.55
5.6.240.0150.00314.36
5.6.230.0100.00614.54
5.6.220.0080.00314.56
5.6.210.0110.04117.67
5.6.200.0120.04216.37
5.6.190.0100.03317.49
5.6.180.0080.03317.64
5.6.170.0130.02617.55
5.6.160.0090.04217.50
5.6.150.0110.04316.23
5.6.140.0080.03116.34
5.6.130.0090.04416.41
5.6.120.0020.02817.76
5.6.110.0070.04117.66
5.6.100.0130.03917.82
5.6.90.0050.04417.61
5.6.80.0070.04617.43
5.6.70.0070.00714.30
5.6.60.0110.00614.52
5.6.50.0110.00414.29
5.6.40.0110.01114.11
5.6.30.0120.00414.32
5.6.20.0040.01114.50
5.6.10.0140.00414.47
5.6.00.0090.00614.29
5.5.380.0150.00012.79
5.5.370.0150.00012.79
5.5.360.0080.00412.79
5.5.350.0050.04116.62
5.5.340.0060.04215.41
5.5.330.0020.02916.68
5.5.320.0250.03816.56
5.5.310.0240.02716.60
5.5.300.0020.02915.38
5.5.290.0090.03815.39
5.5.280.0040.02116.88
5.5.270.0080.02616.77
5.5.260.0100.03816.88
5.5.250.0110.02116.67
5.5.240.0110.03716.41
5.5.230.0070.00712.79
5.5.220.0080.00412.79
5.5.210.0000.01212.79
5.5.200.0080.00812.79
5.5.190.0100.00312.79
5.5.180.0090.00312.79
5.5.170.0130.00814.38
5.5.160.0080.00512.79
5.5.150.0040.00812.79
5.5.140.0110.00312.79
5.5.130.0070.00712.79
5.5.120.0130.00012.79
5.5.110.0060.00312.79
5.5.100.0110.00312.79
5.5.90.0070.00712.79
5.5.80.0150.00012.79
5.5.70.0140.00012.79
5.5.60.0130.00012.79
5.5.50.0070.00712.79
5.5.40.0000.01212.79
5.5.30.0150.00012.79
5.5.20.0110.00312.79
5.5.10.0070.00712.79
5.5.00.0070.00712.79
5.4.450.0190.01816.12
5.4.440.0200.02616.05
5.4.430.0510.03316.10
5.4.420.0280.02716.11
5.4.410.0570.03716.09
5.4.400.0730.02515.84
5.4.390.0530.03216.06
5.4.380.0100.02715.77
5.4.370.0090.03015.76
5.4.360.0180.02215.70
5.4.350.0070.03315.80
5.4.340.0070.04015.77
5.4.330.0060.00312.79
5.4.320.0090.01912.64
5.4.310.0060.02712.64
5.4.300.0060.02012.64
5.4.290.0070.03912.64
5.4.280.0170.04312.59
5.4.270.0160.04112.59
5.4.260.0110.02812.59
5.4.250.0100.03712.59
5.4.240.0120.02612.59
5.4.230.0090.02112.58
5.4.220.0110.01712.59
5.4.210.0100.02012.59
5.4.200.0110.02212.59
5.4.190.0070.03112.58
5.4.180.0050.02512.58
5.4.170.0080.02212.59
5.4.160.0090.02212.59
5.4.150.0060.02412.58
5.4.140.0090.03712.43
5.4.130.0110.02712.42
5.4.120.0090.03012.40
5.4.110.0120.03112.40
5.4.100.0080.05512.40
5.4.90.0090.03112.40
5.4.80.0090.03112.40
5.4.70.0070.02512.40
5.4.60.0090.02612.40
5.4.50.0040.02612.40
5.4.40.0080.02112.39
5.4.30.0110.04812.39
5.4.20.0090.02812.39
5.4.10.0110.03412.39
5.4.00.0090.03712.13
5.3.290.0080.02112.79
5.3.280.0110.03312.75
5.3.270.0100.03712.76
5.3.260.0110.02512.76
5.3.250.0100.03812.75
5.3.240.0140.03912.76
5.3.230.0120.05212.75
5.3.220.0150.04912.74
5.3.210.0090.02812.74
5.3.200.0110.04012.73
5.3.190.0080.03912.73
5.3.180.0100.03412.73
5.3.170.0180.05812.73
5.3.160.0160.05012.73
5.3.150.0110.03112.73
5.3.140.0110.04212.73
5.3.130.0130.04812.72
5.3.120.0120.03412.72
5.3.110.0070.02912.72
5.3.100.0130.02412.45
5.3.90.0080.03212.44
5.3.80.0120.02812.44
5.3.70.0080.02512.44
5.3.60.0080.02312.43
5.3.50.0140.03312.40
5.3.40.0080.03812.40
5.3.30.0080.03012.38
5.3.20.0090.02612.27
5.3.10.0110.02112.26
5.3.00.0090.02912.25
5.2.170.0020.02711.00
5.2.160.0030.02411.00
5.2.150.0060.01911.00
5.2.140.0100.02011.00
5.2.130.0070.01910.98
5.2.120.0050.02010.98
5.2.110.0090.02610.98
5.2.100.0090.02210.98
5.2.90.0080.02910.98
5.2.80.0150.05410.98
5.2.70.0110.03310.98
5.2.60.0080.04910.96
5.2.50.0110.01910.94
5.2.40.0070.02410.93
5.2.30.0100.02010.92
5.2.20.0130.03710.91
5.2.10.0090.02910.86
5.2.00.0080.03410.80
5.1.60.0050.02710.44
5.1.50.0140.02510.43
5.1.40.0080.02610.42
5.1.30.0070.03410.60
5.1.20.0110.02910.61
5.1.10.0060.03310.47
5.1.00.0050.03310.47
5.0.50.0070.0289.71
5.0.40.0020.0339.64
5.0.30.0050.0319.55
5.0.20.0100.0259.53
5.0.10.0070.0289.52
5.0.00.0060.0339.52
4.4.90.0040.0258.79
4.4.80.0040.0148.77
4.4.70.0040.0118.77
4.4.60.0040.0158.77
4.4.50.0080.0218.78
4.4.40.0050.0238.75
4.4.30.0100.0198.77
4.4.20.0070.0188.82
4.4.10.0110.0268.82
4.4.00.0020.0248.78
4.3.110.0020.0158.73
4.3.100.0040.0218.72
4.3.90.0040.0118.71
4.3.80.0050.0478.69
4.3.70.0020.0168.71
4.3.60.0110.0268.71
4.3.50.0070.0318.71
4.3.40.0040.0388.66
4.3.30.0070.0218.04
4.3.20.0050.0228.03
4.3.10.0030.0228.01
4.3.00.0000.01212.68

preferences:
45.16 ms | 401 KiB | 5 Q