3v4l.org

run code in 300+ PHP versions simultaneously
<?php $notifications = []; function add($type){ $notify = array( 'text' => $text , 'link' => $link , 'img' => $img , 'context' => $context ); if ( $notifications && count($notifications[$type]) <= 4 && count($notifications[$type]) ) { array_unshift($notifications[$type], $notify); } elseif ( $notifications && count($notifications[$type]) > 4 ) { array_pop($notifications[$type]); array_unshift($notifications[$type], $notify); } else { $notifications[$type] = []; array_unshift($notifications[$type], $notify); } } for($i = 0; $i< 10; $i++){ add($i); }

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.40.0070.01118.97
8.3.30.0190.00318.79
8.3.20.0080.00018.65
8.3.10.0080.00020.43
8.3.00.0040.00419.38
8.2.170.0170.00322.96
8.2.160.0030.01021.19
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00819.82
8.2.110.0070.00320.47
8.2.100.0030.01018.03
8.2.90.0040.00418.03
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00818.16
8.2.30.0030.00518.08
8.2.20.0030.00617.71
8.2.10.0040.00417.83
8.2.00.0030.00517.90
8.1.270.0000.00724.66
8.1.260.0080.00026.35
8.1.250.0000.00928.09
8.1.240.0090.00022.20
8.1.230.0070.00322.08
8.1.220.0000.00817.79
8.1.210.0050.00318.95
8.1.200.0090.00317.48
8.1.190.0040.00417.66
8.1.180.0060.00318.10
8.1.170.0040.00418.90
8.1.160.0050.00218.84
8.1.150.0000.00818.59
8.1.140.0070.00317.52
8.1.130.0070.00017.72
8.1.120.0040.00417.48
8.1.110.0040.00417.34
8.1.100.0040.00417.39
8.1.90.0030.00417.51
8.1.80.0030.00317.46
8.1.70.0000.00917.42
8.1.60.0040.00417.65
8.1.50.0030.00617.50
8.1.40.0000.00917.49
8.1.30.0000.00717.65
8.1.20.0000.00817.73
8.1.10.0000.00817.63
8.1.00.0030.00617.55
8.0.300.0040.00419.88
8.0.290.0040.00416.75
8.0.280.0000.00718.41
8.0.270.0030.00517.30
8.0.260.0070.00016.90
8.0.250.0040.00417.02
8.0.240.0040.00416.96
8.0.230.0000.00816.91
8.0.220.0030.00516.98
8.0.210.0050.00317.03
8.0.200.0030.00316.90
8.0.190.0040.00417.07
8.0.180.0040.00417.00
8.0.170.0030.00617.00
8.0.160.0030.00317.03
8.0.150.0050.00216.95
8.0.140.0070.00316.89
8.0.130.0030.00313.40
8.0.120.0000.00816.83
8.0.110.0000.00716.93
8.0.100.0000.00716.88
8.0.90.0040.00317.03
8.0.80.0070.01116.96
8.0.70.0000.00716.89
8.0.60.0000.00717.05
8.0.50.0000.00716.95
8.0.30.0120.00717.21
8.0.20.0260.00716.94
8.0.10.0040.00416.91
8.0.00.0120.00616.78
7.4.330.0050.00013.10
7.4.320.0030.00316.54
7.4.300.0030.00316.53
7.4.290.0040.00416.52
7.4.280.0030.00516.66
7.4.270.0000.00716.46
7.4.260.0060.00013.31
7.4.250.0030.00516.56
7.4.240.0000.00716.55
7.4.230.0030.00316.38
7.4.220.0100.00916.52
7.4.210.0070.01116.64
7.4.200.0030.00316.43
7.4.190.0030.00416.44
7.4.160.0120.00616.40
7.4.150.0100.00916.71
7.4.140.0110.00616.55
7.4.130.0110.00616.53
7.4.120.0110.00716.53
7.4.110.0130.00516.59
7.4.100.0080.01116.54
7.4.90.0060.01216.54
7.4.80.0110.01116.52
7.4.70.0130.00316.39
7.4.60.0030.01316.41
7.4.50.0030.00316.32
7.4.40.0030.01116.66
7.4.30.0080.00816.50
7.4.00.0060.00915.00
7.3.330.0000.00613.31
7.3.320.0050.00013.23
7.3.310.0040.00416.30
7.3.300.0000.00816.41
7.3.290.0110.00716.52
7.3.280.0090.00816.45
7.3.270.0160.00316.59
7.3.260.0100.00816.40
7.3.250.0080.00916.39
7.3.240.0090.00916.36
7.3.230.0070.01416.63
7.3.210.0030.01316.41
7.3.200.0120.01319.39
7.3.190.0030.01616.59
7.3.180.0100.01016.59
7.3.170.0030.01316.57
7.3.160.0090.00616.42
7.3.120.0110.00715.05
7.3.00.0070.00416.64
7.2.330.0180.00716.67
7.2.320.0110.00816.86
7.2.310.0120.01216.88
7.2.300.0120.00616.84
7.2.290.0070.01016.80
7.2.130.0000.01416.75
7.2.120.0120.00616.99
7.2.110.0130.00316.82
7.2.100.0060.00616.80
7.2.90.0070.00717.15
7.2.80.0040.00717.05
7.2.70.0070.00717.09
7.2.60.0140.00216.75
7.2.50.0140.00317.02
7.2.40.0070.00717.02
7.2.30.0150.00317.11
7.2.20.0030.01016.87
7.2.10.0040.01117.16
7.2.00.0030.00818.01
7.1.250.0040.00815.86
7.1.240.0060.00915.99
7.1.230.0070.01015.84
7.1.220.0050.00816.00
7.1.210.0160.00015.55
7.1.200.0070.00915.95
7.1.190.0030.00615.95
7.1.180.0080.00315.71
7.1.170.0090.00615.67
7.1.160.0040.01215.72
7.1.150.0030.00915.82
7.1.140.0030.01015.65
7.1.130.0100.00315.95
7.1.120.0040.01215.77
7.1.110.0030.01015.87
7.1.100.0030.01116.80
7.1.90.0060.00615.73
7.1.80.0040.01115.54
7.1.70.0030.00716.59
7.1.60.0070.01017.49
7.1.50.0090.00616.22
7.1.40.0100.00215.84
7.1.30.0140.00415.93
7.1.20.0120.00315.85
7.1.10.0090.00915.52
7.1.00.0020.04218.93
7.0.330.0080.00515.44
7.0.320.0030.01015.36
7.0.310.0070.00715.33
7.0.300.0040.00815.00
7.0.290.0090.00615.37
7.0.280.0040.00715.33
7.0.270.0060.00615.59
7.0.260.0090.00315.06
7.0.250.0060.00615.52
7.0.240.0040.00915.27
7.0.230.0000.00815.44
7.0.220.0070.01015.36
7.0.210.0030.01215.11
7.0.200.0090.00316.09
7.0.190.0070.00315.51
7.0.180.0070.00415.33
7.0.170.0070.01415.13
7.0.160.0110.00315.47
7.0.150.0080.01015.21
7.0.140.0050.02718.58
7.0.130.0110.00815.31
7.0.120.0060.03818.82
7.0.110.0060.00915.49
7.0.100.0030.01315.34
7.0.90.0040.01215.49
7.0.80.0120.00615.37
7.0.70.0000.00915.16
7.0.60.0090.04217.76
7.0.50.0050.04416.73
7.0.40.0070.04416.84
7.0.30.0220.01616.64
7.0.20.0170.04416.80
7.0.10.0090.02516.66
7.0.00.0050.04116.79
5.6.380.0080.00414.18
5.6.370.0030.00814.64
5.6.360.0060.00314.50
5.6.350.0030.00914.21
5.6.340.0040.00714.11
5.6.330.0040.00713.84
5.6.320.0070.00714.34
5.6.310.0040.00714.48
5.6.300.0070.01014.25
5.6.290.0090.00614.18
5.6.280.0080.04017.62
5.6.270.0110.00714.53
5.6.260.0030.01014.62
5.6.250.0130.00314.41
5.6.240.0040.01214.43
5.6.230.0130.00014.58
5.6.220.0040.01214.15
5.6.210.0060.02917.55
5.6.200.0040.02716.15
5.6.190.0060.04217.34
5.6.180.0150.03717.20
5.6.170.0110.02917.37
5.6.160.0080.04017.29
5.6.150.0100.04216.20
5.6.140.0070.03416.20
5.6.130.0110.04016.29
5.6.120.0120.03217.64
5.6.110.0050.04817.76
5.6.100.0040.02417.60
5.6.90.0090.02217.62
5.6.80.0090.02117.28
5.6.70.0040.00714.52
5.6.60.0060.00713.97
5.6.50.0030.00914.32
5.6.40.0090.00314.27
5.6.30.0030.00914.52
5.6.20.0040.00814.41
5.6.10.0070.00314.28
5.6.00.0030.00913.91
5.5.380.0100.00311.37
5.5.370.0050.00311.33
5.5.360.0000.00611.42
5.5.350.0150.02015.78
5.5.340.0030.02514.51
5.5.330.0050.04515.54
5.5.320.0090.02415.79
5.5.310.0190.03715.87
5.5.300.0020.02414.57
5.5.290.0030.03014.51
5.5.280.0020.03316.00
5.5.270.0070.02316.14
5.5.260.0120.01716.07
5.5.250.0060.02215.88
5.5.240.0030.04015.74
5.5.230.0030.00711.20
5.5.220.0030.00611.03
5.5.210.0050.00311.09
5.5.200.0000.00710.98
5.5.190.0000.00810.89
5.5.180.0040.00411.05
5.5.170.0030.00611.01
5.5.160.0060.00311.11
5.5.150.0040.00411.14
5.5.140.0030.00611.13
5.5.130.0030.00611.27
5.5.120.0030.00610.97
5.5.110.0040.00411.06
5.5.100.0030.00711.13
5.5.90.0060.00311.27
5.5.80.0050.00311.08
5.5.70.0000.00811.04
5.5.60.0000.00811.27
5.5.50.0070.00010.79
5.5.40.0070.00011.08
5.5.30.0080.00311.07
5.5.20.0040.00411.07
5.5.10.0040.00411.08
5.5.00.0060.00311.28
5.4.450.0040.02615.35
5.4.440.0030.03015.26
5.4.430.0050.03015.32
5.4.420.0060.02315.29
5.4.410.0060.02115.36
5.4.400.0030.03615.14
5.4.390.0050.04215.15
5.4.380.0050.04215.11
5.4.370.0060.02114.93
5.4.360.0050.02515.11
5.4.350.0030.02915.24
5.4.340.0050.03015.02
5.4.330.0000.00711.15
5.4.320.0050.04815.14
5.4.310.0070.02315.16
5.4.300.0050.02015.04
5.4.290.0080.03815.08
5.4.280.0070.04014.89
5.4.270.0080.02314.96
5.4.260.0030.03715.03
5.4.250.0050.04015.13
5.4.240.0070.03515.23
5.4.230.0030.04215.21
5.4.220.0090.03715.21
5.4.210.0050.03915.01
5.4.200.0050.03714.81
5.4.190.0030.02715.03
5.4.180.0100.04015.03
5.4.170.0050.04215.20
5.4.160.0040.02615.25
5.4.150.0090.03215.02
5.4.140.0020.02713.65
5.4.130.0050.02413.76
5.4.120.0070.02113.63
5.4.110.0050.02313.79
5.4.100.0050.03513.72
5.4.90.0070.02213.79
5.4.80.0040.03813.75
5.4.70.0070.02113.60
5.4.60.0140.02513.83
5.4.50.0070.02113.80
5.4.40.0080.03613.85
5.4.30.0090.03813.75
5.4.20.0030.04013.65
5.4.10.0050.02913.90
5.4.00.0030.04013.50
5.3.290.0020.04512.36
5.3.280.0020.04012.32
5.3.270.0080.03712.26
5.3.260.0040.02512.40
5.3.250.0050.04312.26
5.3.240.0030.03712.27
5.3.230.0070.04012.34
5.3.220.0050.02512.22
5.3.210.0060.02512.38
5.3.200.0000.03212.20
5.3.190.0000.04412.38
5.3.180.0080.03712.24
5.3.170.0050.02712.43
5.3.160.0050.03012.40
5.3.150.0080.02612.35
5.3.140.0070.03712.36
5.3.130.0040.04112.36
5.3.120.0050.04012.35
5.3.110.0020.03712.38
5.3.100.0060.03012.05
5.3.90.0060.02312.06
5.3.80.0060.03812.02
5.3.70.0070.03412.06
5.3.60.0100.03412.06
5.3.50.0000.04312.01
5.3.40.0050.02411.95
5.3.30.0030.02312.01
5.3.20.0050.02211.79
5.3.10.0100.02811.78
5.3.00.0000.04211.76
5.2.170.0030.02310.54
5.2.160.0030.03310.52
5.2.150.0070.01710.51
5.2.140.0020.03510.52
5.2.130.0060.03010.46
5.2.120.0050.02210.52
5.2.110.0030.03110.52
5.2.100.0050.02810.47
5.2.90.0010.02410.52
5.2.80.0070.01810.44
5.2.70.0030.03310.45
5.2.60.0040.02410.46
5.2.50.0050.03110.48
5.2.40.0020.03910.47
5.2.30.0070.03010.41
5.2.20.0050.01810.37
5.2.10.0040.02510.41
5.2.00.0030.03010.39
5.1.60.0020.0149.96
5.1.50.0030.0179.95
5.1.40.0050.0159.97
5.1.30.0020.03210.07
5.1.20.0000.02310.17
5.1.10.0030.01610.03
5.1.00.0020.03010.00
5.0.50.0040.0229.28
5.0.40.0050.0239.19
5.0.30.0050.0309.13
5.0.20.0030.0219.13
5.0.10.0020.0229.13
5.0.00.0000.0379.13
4.4.90.0000.0159.13
4.4.80.0050.0089.13
4.4.70.0030.0169.13
4.4.60.0010.0099.13
4.4.50.0060.0159.13
4.4.40.0020.0159.13
4.4.30.0000.0159.13
4.4.20.0000.0139.13
4.4.10.0020.0199.13
4.4.00.0000.0309.13
4.3.110.0020.0199.13
4.3.100.0030.0119.13
4.3.90.0000.0199.13
4.3.80.0000.0259.13
4.3.70.0000.0179.13
4.3.60.0000.0129.13
4.3.50.0040.0179.13
4.3.40.0000.0219.13
4.3.30.0000.0129.13
4.3.20.0030.0099.13
4.3.10.0030.0089.13
4.3.00.0000.0139.13

preferences:
63.85 ms | 400 KiB | 5 Q