3v4l.org

run code in 300+ PHP versions simultaneously
<?php ncurses_init(); // If the terminal supports colors, initialize and set active color if (ncurses_has_colors()) { ncurses_start_color(); ncurses_init_pair(1, NCURSES_COLOR_YELLOW, NCURSES_COLOR_BLUE); ncurses_color_set(1); } // Write a string at specified location ncurses_mvaddstr(10, 10, "Hello world! Yellow on blue text!"); // Flush output to screen ncurses_refresh(); ncurses_end(); ?>

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.00416.50
8.3.50.0090.00619.88
8.3.40.0170.00318.97
8.3.30.0070.00718.84
8.3.20.0000.00720.29
8.3.10.0040.00420.39
8.3.00.0080.00020.51
8.2.180.0110.01116.63
8.2.170.0040.01122.96
8.2.160.0130.00320.36
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00019.36
8.2.120.0030.00526.35
8.2.110.0050.00522.08
8.2.100.0060.00617.85
8.2.90.0080.00018.09
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0110.00017.55
8.2.50.0080.00018.10
8.2.40.0060.00322.23
8.2.30.0000.00819.35
8.2.20.0040.00417.73
8.2.10.0000.00717.87
8.2.00.0000.00817.86
8.1.280.0040.01125.92
8.1.270.0030.00623.96
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0070.00323.89
8.1.230.0090.00320.89
8.1.220.0040.00417.74
8.1.210.0070.00418.77
8.1.200.0000.00817.23
8.1.190.0080.00017.23
8.1.180.0040.00718.10
8.1.170.0040.00418.47
8.1.160.0040.00420.81
8.1.150.0040.00418.75
8.1.140.0000.00719.39
8.1.130.0030.00317.62
8.1.120.0030.00317.36
8.1.110.0040.00417.33
8.1.100.0070.00017.36
8.1.90.0040.00417.32
8.1.80.0040.00417.24
8.1.70.0000.00717.23
8.1.60.0040.00417.52
8.1.50.0030.00517.41
8.1.40.0060.00317.50
8.1.30.0000.00817.45
8.1.20.0040.00417.63
8.1.10.0040.00417.53
8.1.00.0000.00717.37
8.0.300.0040.00420.09
8.0.290.0040.00416.75
8.0.280.0000.00818.44
8.0.270.0000.00716.78
8.0.260.0060.00017.10
8.0.250.0070.00016.89
8.0.240.0000.00716.96
8.0.230.0030.00316.83
8.0.220.0030.00716.91
8.0.210.0070.00016.77
8.0.200.0030.00316.82
8.0.190.0080.00016.88
8.0.180.0040.00416.81
8.0.170.0040.00416.89
8.0.160.0070.00016.88
8.0.150.0070.00016.72
8.0.140.0040.00416.88
8.0.130.0050.00013.24
8.0.120.0000.00716.70
8.0.110.0080.00016.94
8.0.100.0040.00416.74
8.0.90.0000.00816.74
8.0.80.0090.00616.82
8.0.70.0000.00716.97
8.0.60.0000.00716.79
8.0.50.0000.00816.96
8.0.30.0090.00816.99
8.0.20.0140.00617.40
8.0.10.0000.00716.95
8.0.00.0110.00916.77
7.4.330.0000.00615.08
7.4.320.0000.00616.52
7.4.300.0000.00616.46
7.4.290.0000.00716.38
7.4.280.0050.00216.53
7.4.270.0090.00016.44
7.4.260.0040.00316.53
7.4.250.0030.00516.43
7.4.240.0030.00316.46
7.4.230.0000.00816.55
7.4.220.0120.00916.66
7.4.210.0050.01016.52
7.4.200.0040.00416.57
7.4.160.0100.00716.45
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0060.01016.53
7.4.120.0100.01016.42
7.4.110.0120.00616.70
7.4.100.0110.01116.57
7.4.90.0100.00716.52
7.4.80.0030.01619.39
7.4.70.0140.00316.59
7.4.60.0070.01016.28
7.4.50.0100.00616.35
7.4.40.0130.00316.44
7.4.30.0100.00716.59
7.4.00.0100.00315.11
7.3.330.0060.00013.18
7.3.320.0000.00613.12
7.3.310.0000.00716.38
7.3.300.0000.00616.25
7.3.290.0000.00616.27
7.3.280.0080.00916.23
7.3.270.0130.01017.40
7.3.260.0040.01416.48
7.3.250.0110.01016.40
7.3.240.0090.00916.27
7.3.230.0130.00316.39
7.3.210.0070.01716.43
7.3.200.0060.01619.39
7.3.190.0120.00516.29
7.3.180.0150.00316.42
7.3.170.0130.00316.49
7.3.160.0100.00616.47
7.2.330.0110.00816.52
7.2.320.0100.01016.34
7.2.310.0070.01016.46
7.2.300.0100.00716.59
7.2.290.0030.01516.34
7.2.60.0080.00816.74
7.2.00.0030.01018.93
7.1.200.0100.00315.57
7.1.100.0000.01118.03
7.1.70.0000.01516.75
7.1.60.0160.00919.15
7.1.50.0070.01416.83
7.1.00.0030.07722.48
7.0.200.0270.00014.63
7.0.60.0070.04019.92
7.0.50.0070.07317.83
7.0.40.0700.05320.11
7.0.30.1070.07020.46
7.0.20.1170.06320.09
7.0.10.1130.07020.14
7.0.00.1000.06720.14
5.6.280.0130.06320.90
5.6.210.0100.06020.72
5.6.200.0030.04318.23
5.6.190.0070.06720.64
5.6.180.0230.05320.46
5.6.170.1000.05320.59
5.6.160.0900.06320.79
5.6.150.1000.05720.38
5.6.140.0000.06720.13
5.6.130.0300.05720.49
5.6.120.0070.06320.11
5.6.110.0100.06020.42
5.6.100.0370.05320.08
5.6.90.0830.06720.41
5.6.80.0800.06719.48
5.6.70.0870.04719.80
5.6.60.1070.04719.76
5.6.50.1100.05019.79
5.6.40.0930.08019.80
5.6.30.1030.06019.80
5.6.20.0800.05319.71
5.6.10.0770.05719.82
5.6.00.0770.05719.45
5.5.350.0300.07020.48
5.5.340.0070.07717.91
5.5.330.0170.05020.42
5.5.320.0730.05720.29
5.5.310.1100.06020.35
5.5.300.0230.04719.93
5.5.290.0930.04720.23
5.5.280.0200.05320.32
5.5.270.0100.05719.91
5.5.260.0770.07020.25
5.5.250.0900.05019.94
5.5.240.0770.06319.32
5.5.230.0800.05719.28
5.5.220.0900.04719.30
5.5.210.0930.06319.52
5.5.200.0970.06019.52
5.5.190.0970.05719.31
5.5.180.0930.06019.26
5.5.160.0970.05019.53
5.5.150.1130.07719.60
5.5.140.0870.06019.53
5.5.130.0930.06019.48
5.5.120.1070.05319.24
5.5.110.0730.06019.24
5.5.100.0870.06319.50
5.5.90.0800.06319.42
5.5.80.0830.04719.14
5.5.70.0730.05719.39
5.5.60.0700.06019.46
5.5.50.0730.06019.37
5.5.40.0900.04719.30
5.5.30.0730.06019.42
5.5.20.0800.05019.52
5.5.10.0930.04319.18
5.5.00.0770.05719.50

preferences:
56.29 ms | 401 KiB | 5 Q