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,$a1); 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.0060.00918.43
8.3.50.0080.01221.94
8.3.40.0070.00718.89
8.3.30.0100.00319.04
8.3.20.0040.00420.25
8.3.10.0080.00023.52
8.3.00.0040.00419.06
8.2.180.0150.00018.30
8.2.170.0070.00722.96
8.2.160.0130.00720.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.98
8.2.110.0030.00622.27
8.2.100.0120.00018.03
8.2.90.0000.00719.34
8.2.80.0000.00817.97
8.2.70.0000.00917.75
8.2.60.0060.00318.05
8.2.50.0030.00618.07
8.2.40.0050.00319.95
8.2.30.0030.00618.14
8.2.20.0070.00017.64
8.2.10.0000.00718.16
8.2.00.0030.00517.71
8.1.280.0070.01025.92
8.1.270.0080.00023.98
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00623.70
8.1.230.0060.00619.08
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0100.00017.35
8.1.190.0050.00317.13
8.1.180.0040.00418.98
8.1.170.0080.00018.36
8.1.160.0040.00421.87
8.1.150.0030.00618.53
8.1.140.0070.00017.34
8.1.130.0050.00317.74
8.1.120.0050.00217.41
8.1.110.0040.00417.24
8.1.100.0030.00317.32
8.1.90.0040.00417.45
8.1.80.0030.00517.44
8.1.70.0000.00717.35
8.1.60.0000.00917.55
8.1.50.0050.00317.42
8.1.40.0050.00317.45
8.1.30.0000.00817.60
8.1.20.0000.00717.43
8.1.10.0000.00717.46
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0050.00318.39
8.0.270.0000.00717.29
8.0.260.0060.00018.43
8.0.250.0000.00616.77
8.0.240.0040.00716.91
8.0.230.0000.00716.79
8.0.220.0030.00316.81
8.0.210.0030.00316.76
8.0.200.0060.00016.93
8.0.190.0040.00416.92
8.0.180.0070.00016.83
8.0.170.0060.00316.74
8.0.160.0050.00216.85
8.0.150.0040.00416.76
8.0.140.0000.00716.75
8.0.130.0050.00013.18
8.0.120.0040.00416.63
8.0.110.0070.00016.87
8.0.100.0040.00416.60
8.0.90.0040.00416.77
8.0.80.0060.00916.89
8.0.70.0080.00016.80
8.0.60.0000.00716.73
8.0.50.0040.00416.86
8.0.30.0100.00816.91
8.0.20.0090.01317.40
8.0.10.0040.00416.77
8.0.00.0100.00916.61
7.4.330.0000.00515.00
7.4.320.0040.00416.45
7.4.300.0000.00616.55
7.4.290.0070.00016.38
7.4.280.0000.00716.52
7.4.270.0030.00316.55
7.4.260.0020.00516.41
7.4.250.0000.00816.42
7.4.240.0020.00516.48
7.4.230.0040.00416.35
7.4.220.0120.00616.61
7.4.210.0080.00716.51
7.4.200.0000.00716.63
7.4.190.0040.00416.43
7.4.160.0070.01016.39
7.4.150.0030.01317.40
7.4.140.0100.00717.86
7.4.130.0160.00816.41
7.4.120.0140.00316.33
7.4.110.0090.00916.49
7.4.100.0070.01116.33
7.4.90.0120.00416.38
7.4.80.0110.01119.39
7.4.70.0030.01316.56
7.4.60.0150.00916.27
7.4.50.0000.00916.28
7.4.40.0090.00916.39
7.4.30.0070.01016.68
7.4.00.0090.00614.67
7.3.330.0060.00013.13
7.3.320.0050.00013.20
7.3.310.0030.00416.34
7.3.300.0000.00716.28
7.3.290.0100.00816.29
7.3.280.0070.00916.32
7.3.270.0130.00517.40
7.3.260.0030.01316.52
7.3.250.0120.00916.41
7.3.240.0120.01216.42
7.3.230.0160.00016.50
7.3.210.0060.01016.56
7.3.200.0180.00619.39
7.3.190.0100.00716.30
7.3.180.0120.00416.63
7.3.170.0090.01216.39
7.3.160.0130.00916.60
7.3.120.0060.00914.69
7.2.330.0140.00316.76
7.2.320.0060.01616.51
7.2.310.0110.01116.43
7.2.300.0000.01816.86
7.2.290.0140.00316.46
7.2.60.0060.01016.87
7.2.00.0080.00819.58
7.1.200.0040.00415.48
7.1.100.0260.00918.00
7.1.70.0000.00817.02
7.1.60.0130.00719.46
7.1.50.0100.01416.80
7.1.00.0030.07722.45
7.0.200.0030.00616.79
7.0.140.0000.05022.08
7.0.60.0100.03719.92
7.0.50.0070.04017.91
7.0.40.0030.04720.30
7.0.30.0200.07020.15
7.0.20.0300.05020.24
7.0.10.0030.04720.09
7.0.00.0000.07320.24
5.6.280.0000.07720.82
5.6.210.0000.08320.50
5.6.200.0070.08018.18
5.6.190.0070.09020.61
5.6.180.0030.05020.42
5.6.170.0130.04720.71
5.6.160.0100.07720.57
5.6.150.0070.04318.29
5.6.140.0030.05018.14
5.6.130.0000.04318.15
5.6.120.0170.07021.14
5.6.110.0070.03720.96
5.6.100.0100.05320.85
5.6.90.0000.05721.02
5.6.80.0130.06320.35
5.5.350.0030.08020.36
5.5.340.0030.06717.96
5.5.330.0000.05020.30
5.5.320.0370.06720.25
5.5.310.0370.07320.32
5.5.300.0170.05317.94
5.5.290.0100.05017.96
5.5.280.0070.04020.89
5.5.270.0130.07720.68
5.5.260.0200.07020.87
5.5.250.0130.07720.49
5.5.240.0070.07320.19
5.4.450.0270.04019.39
5.4.440.0530.05719.38
5.4.430.0170.06019.49
5.4.420.0200.04719.52
5.4.410.0170.05719.25
5.4.400.1000.07719.22
5.4.390.0730.04719.17
5.4.380.0130.05318.50
5.4.370.0130.05318.74
5.4.360.0270.05318.61
5.4.350.0200.04718.76
5.4.340.0130.05318.79
5.4.320.0070.03412.50
5.4.310.0050.04012.50
5.4.300.0040.03812.50
5.4.290.0120.05312.49
5.4.280.0100.05212.39
5.4.270.0140.07212.39
5.4.260.0070.06212.39
5.4.250.0070.06012.39
5.4.240.0090.05612.39
5.4.230.0080.05812.38
5.4.220.0160.08512.38
5.4.210.0140.06712.38
5.4.200.0050.05412.38
5.4.190.0100.04412.38
5.4.180.0070.04212.38
5.4.170.0100.05212.39
5.4.160.0110.04612.39
5.4.150.0110.04712.39
5.4.140.0130.04912.06
5.4.130.0060.05212.05
5.4.120.0110.07412.02
5.4.110.0080.05412.01
5.4.100.0080.05512.01
5.4.90.0090.04812.00
5.4.80.0070.05412.01
5.4.70.0080.05512.01
5.4.60.0120.07712.00
5.4.50.0130.09912.00
5.4.40.0070.05412.00
5.4.30.0120.04811.99
5.4.20.0060.06111.99
5.4.10.0090.05411.99
5.4.00.0070.05611.48
5.3.290.0070.03712.80
5.3.280.0160.05712.71
5.3.270.0120.05612.73
5.3.260.0100.06212.72
5.3.250.0190.08812.72
5.3.240.0100.05812.72
5.3.230.0150.06412.71
5.3.220.0130.06012.68
5.3.210.0120.06112.68
5.3.200.0110.05612.68
5.3.190.0110.05212.68
5.3.180.0080.05812.67
5.3.170.0090.05512.67
5.3.160.0110.05312.68
5.3.150.0100.05412.67
5.3.140.0120.05112.66
5.3.130.0090.06712.66
5.3.120.0130.05712.66
5.3.110.0180.12112.66
5.3.100.0150.09212.12
5.3.90.0150.08612.09
5.3.80.0150.04512.08
5.3.70.0180.12612.09
5.3.60.0210.10412.07
5.3.50.0330.12512.02
5.3.40.0220.05012.02
5.3.30.0070.05311.98
5.3.20.0090.06011.76
5.3.10.0100.05611.72
5.3.00.0120.06911.71
5.2.170.0180.0659.21
5.2.160.0110.0519.21
5.2.150.0100.0589.21
5.2.140.0130.0629.21
5.2.130.0230.0889.17
5.2.120.0180.0799.17
5.2.110.0200.0879.18
5.2.100.0150.0839.18
5.2.90.0100.0439.18
5.2.80.0130.0649.17
5.2.70.0160.0719.17
5.2.60.0260.0749.12
5.2.50.0310.0629.09
5.2.40.0080.0659.07
5.2.30.0070.0519.04
5.2.20.0150.0379.03
5.2.10.0060.0448.93
5.2.00.0060.0468.80
5.1.60.0080.0368.08
5.1.50.0110.0358.07
5.1.40.0090.0388.06
5.1.30.0080.0438.41
5.1.20.0050.0428.43
5.1.10.0130.0428.16
5.1.00.0090.0378.16
5.0.50.0180.0576.64
5.0.40.0120.0586.49
5.0.30.0050.0846.30
5.0.20.0080.0336.27
5.0.10.0100.0276.25
5.0.00.0080.0416.24
4.4.90.0060.0254.78
4.4.80.0030.0254.76
4.4.70.0060.0214.75
4.4.60.0070.0214.76
4.4.50.0040.0234.77
4.4.40.0040.0414.71
4.4.30.0030.0264.76
4.4.20.0020.0264.85
4.4.10.0060.0404.85
4.4.00.0050.0374.75
4.3.110.0080.0204.67
4.3.100.0040.0244.66
4.3.90.0090.0204.63
4.3.80.0060.0354.58
4.3.70.0040.0244.63
4.3.60.0060.0234.63
4.3.50.0120.0334.63
4.3.40.0060.0344.54
4.3.30.0040.0263.30
4.3.20.0030.0253.28
4.3.10.0040.0243.24
4.3.00.0100.01012.57

preferences:
45.51 ms | 401 KiB | 5 Q